Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate to github actions #759

Merged
merged 3 commits into from Oct 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
47 changes: 46 additions & 1 deletion .github/workflows/test.yml
Expand Up @@ -9,6 +9,51 @@ on:
jobs:
test:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.allow_failure }}
env:
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3
CI: true
TRUFFLERUBYOPT: "--engine.Mode=latency"
strategy:
fail-fast: false
matrix:
ruby: ["2.4.10", "2.5.8", "2.6.6", "2.7.2", "jruby-9.2"]
test_command: ["bundle exec rake test"]
allow_failure: [false]
include:
- ruby: "head"
test_command: "bundle exec rake test"
allow_failure: true
- ruby: "truffleruby"
test_command: "bundle exec rake test"
allow_failure: true
- ruby: "2.7.2"
test_command: "./ci/run_rubocop_specs"
allow_failure: true
steps:
- name: succeed
- uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: /home/runner/bundle
key: bundle-${{ matrix.ruby }}-${{ hashFiles('../Gemfile') }}-${{ hashFiles('**/*.gemspec') }}
restore-keys: |
bundle-${{ matrix.ruby }}-
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install Ragel
run: |
sudo apt-get update
sudo apt-get install ragel
- name: Bundle install
run: |
bundle config path /home/runner/bundle
bundle install
bundle update
- name: Run tests
run: |
${{ matrix.test_command }}
- name: ignore failure if the job is allowed to fail
if: ${{ matrix.allow_failure }}
run: true
41 changes: 0 additions & 41 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
@@ -1,7 +1,7 @@
# Parser

[![Gem Version](https://badge.fury.io/rb/parser.svg)](https://badge.fury.io/rb/parser)
[![Build Status](https://travis-ci.org/whitequark/parser.svg?branch=master)](https://travis-ci.org/whitequark/parser)
[![Tests](https://github.com/whitequark/parser/workflows/Tests/badge.svg?branch=master)](https://github.com/whitequark/parser/actions?query=workflow%3ATests+branch%3Amaster)

_Parser_ is a production-ready Ruby parser written in pure Ruby. It recognizes as
much or more code than Ripper, Melbourne, JRubyParser or ruby\_parser, and
Expand Down
3 changes: 1 addition & 2 deletions ci/run_rubocop_specs
Expand Up @@ -2,8 +2,7 @@

set -eux

bundle install
rake generate
bundle exec rake generate

git clone https://github.com/rubocop-hq/rubocop.git --depth=1
cd rubocop
Expand Down