Skip to content

Commit

Permalink
Configure GitHub Actions (#733)
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan authored Sep 2, 2020
1 parent a7da26c commit bfeaa8b
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: RuboCop 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

0 comments on commit bfeaa8b

Please sign in to comment.