Skip to content

Commit

Permalink
First try at Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Spone committed Sep 18, 2019
1 parent 762afa1 commit 48282f4
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,32 @@
name: Tests

on: [push]

jobs:
test:
name: Test on Ruby ${{ matrix.ruby_version }}, node ${{ matrix.node_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node_version: [8, 10, 12]
ruby_version: [2.5.x, 2.6.x]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v1
- name: Set up Ruby ${{ matrix.ruby_version }}
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v1
with:
version: ${{ matrix.node_version }}

- name: Build and test with Rake
run: |
gem install bundler
bundle install --jobs 4 --retry 3
npm i -g yarn
yarn
bundle exec rake test:all_with_coverage

0 comments on commit 48282f4

Please sign in to comment.