-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from HatsuneMiku3939/add-test-action
feature: Add unittest workflow
- Loading branch information
Showing
3 changed files
with
39 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
continue-on-error: false | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
#os: ['ubuntu-latest', 'windows-latest'] | ||
os: ['ubuntu-latest'] | ||
ruby-version: ['2.3', '2.4', '2.7', '3.0', '3.1'] | ||
|
||
name: Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby-version }} | ||
|
||
- name: Install addons | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: sudo apt-get install libgmp3-dev libcap-ng-dev | ||
|
||
- name: Install dependencies | ||
run: bundle install | ||
|
||
- name: Run tests | ||
run: bundle exec rake test TESTOPTS=-v |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.