-
-
Notifications
You must be signed in to change notification settings - Fork 90
73 lines (71 loc) · 1.89 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Build
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
env:
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3
CI: true
COVERAGE: ${{ matrix.coverage }}
COVERALLS_REPO_TOKEN: ${{ secrets.github_token }}
strategy:
fail-fast: false
matrix:
ruby: ["2.7"]
bundler: ["2"]
gemfile: [
"gemfiles/rails6.gemfile"
]
coverage: ["false"]
include:
- ruby: "3.0"
gemfile: "gemfiles/rails6.gemfile"
coverage: "false"
- ruby: "3.1"
gemfile: "gemfiles/rails7.gemfile"
coverage: "false"
- ruby: "3.2"
gemfile: "gemfiles/rails7.gemfile"
coverage: "false"
- ruby: "3.3"
gemfile: "gemfiles/rails71.gemfile"
coverage: "true"
- ruby: "3.1"
gemfile: "gemfiles/railsmaster.gemfile"
coverage: "false"
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run Ruby Next
run: bundle exec rake nextify
- name: Install Coveralls reporter
if: ${{ matrix.coverage == 'true' }}
run: |
curl -L https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-linux.tar.gz | tar zxv
- name: Run Minitest tests
run: |
bundle exec rake test
- name: Coveralls upload
if: ${{ matrix.coverage == 'true' }}
run: |
./coveralls -p --job-flag=minitest
- name: Run RSpec tests
run: |
bundle exec rspec --force-color
- name: Coveralls upload
if: ${{ matrix.coverage == 'true' }}
run: |
./coveralls -p --job-flag=rspec
- name: Coveralls Finished
if: ${{ matrix.coverage == 'true' }}
run: |
./coveralls -d