Skip to content

Commit

Permalink
migrate to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
iliabylich committed Oct 30, 2020
1 parent dfd596c commit 208549b
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 44 deletions.
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.

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

0 comments on commit 208549b

Please sign in to comment.