Skip to content

Commit

Permalink
migrate to github actions (#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
iliabylich committed Oct 30, 2020
1 parent dfd596c commit 08b7f57
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 45 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.

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

0 comments on commit 08b7f57

Please sign in to comment.