-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (33 loc) · 1.01 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: test
on:
push:
branches: [ 'v[0-9]+' ]
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
steps:
- uses: actions/checkout@v3
- uses: tj-actions/changed-files@v35
id: files
with:
json: true
# - run: |
# echo "${{ steps.files.outputs.all_changed_files }}" > changed.json
# shell: bash
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- if: matrix.os == 'ubuntu-latest'
run: bundle exec ruby test/test_name.rb
- if: matrix.os == 'ubuntu-latest'
run: bundle exec ruby test/test_formulas.rb --every-platform --platform linux
- if: matrix.os == 'macos-latest'
run: bundle exec ruby test/test_formulas.rb --platform macos
- if: matrix.os == 'windows-latest'
run: bundle exec ruby test/test_formulas.rb --platform windows