Skip to content

Commit

Permalink
Add rake test GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
CAMOBAP committed May 7, 2021
1 parent fa562ae commit 3a37bf9
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 74 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/rake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: rake

on:
push:
branches: [ master, main ]
tags: [ v* ]
pull_request:

# https://github.community/t/use-working-directory-for-entire-job/16747/12
defaults:
run:
working-directory: ./ruby

jobs:
rake:
name: Test on Ruby ${{ matrix.ruby }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
ruby: [ '2.7', '2.6', '2.5', '2.4' ]
os: [ ubuntu-latest, windows-latest, macos-latest ]
experimental: [ false ]
include:
- ruby: '3.0'
os: 'ubuntu-latest'
experimental: true
- ruby: '3.0'
os: 'windows-latest'
experimental: true
- ruby: '3.0'
os: 'macos-latest'
experimental: true
steps:
- uses: actions/checkout@v2
with:
submodules: true

- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
working-directory: ./ruby

- run: bundle exec rake
74 changes: 0 additions & 74 deletions ruby/Gemfile.lock

This file was deleted.

0 comments on commit 3a37bf9

Please sign in to comment.