Skip to content

Commit

Permalink
Merge pull request #32 from HatsuneMiku3939/add-test-action
Browse files Browse the repository at this point in the history
feature: Add unittest workflow
  • Loading branch information
HatsuneMiku3939 authored Feb 6, 2024
2 parents 4233eaa + fe9a9be commit c55dfdc
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 33 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test.yaml
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
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

23 changes: 0 additions & 23 deletions appveyor.yml

This file was deleted.

0 comments on commit c55dfdc

Please sign in to comment.