Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure GitHub Actions (based on #733)
- Loading branch information
1 parent
a7da26c
commit b862fa3
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Parser Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
env: | ||
BUNDLE_JOBS: 4 | ||
BUNDLE_RETRY: 3 | ||
CI: true | ||
TRUFFLERUBYOPT: "--engine.Mode=latency" | ||
continue-on-error: ${{ matrix.experimental }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: ["2.4.10", "2.5.8", "2.6.6", "2.7.1", "jruby-9.2", "truffleruby"] | ||
test_command: ["bundle exec rake test", "./ci/run_rubocop_specs"] | ||
experimental: [false] | ||
include: | ||
- ruby: "head" | ||
experimental: true | ||
steps: | ||
- 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: | | ||
bundle exec rake test |