Skip to content

Commit

Permalink
GitHub Actions: Test with optional dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Takuro Ashie <[email protected]>
  • Loading branch information
ashie committed May 21, 2021
1 parent 41563ff commit 73f1c94
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,21 @@ jobs:
fail-fast: false
matrix:
ruby: [ '3.0', '2.7', '2.6', '2.5' ]
os:
- ubuntu-latest
os: [ 'ubuntu-latest' ]
test-optional: [ true ]
include:
- ruby: '2.7'
os: ubuntu-latest
test-optional: false
name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: install optional dependencies
if: ${{ matrix.test-optional }}
run: gem install rb-inotify
- name: unit testing
env:
CI: true
Expand Down

0 comments on commit 73f1c94

Please sign in to comment.