-
Notifications
You must be signed in to change notification settings - Fork 143
59 lines (51 loc) · 1.49 KB
/
ruby.yml
File metadata and controls
59 lines (51 loc) · 1.49 KB
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
name: build
on: [push, pull_request]
jobs:
build:
name: build
runs-on: ${{ matrix.os }}
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' || matrix.experimental }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
ruby: [
"3.1",
"3.2",
"3.3",
]
gemfile: [
"Gemfile-rails.7.0.x",
"Gemfile-rails.7.1.x",
"Gemfile-rails.7.2.x",
]
experimental: [false]
include:
- ruby: "3.4"
os: ubuntu-latest
gemfile: "Gemfile-rails.8.0.x"
experimental: true
- ruby: "3.4"
os: ubuntu-latest
gemfile: Gemfile-rails-edge
experimental: true
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}
SECRET_KEY_BASE_DUMMY: 1
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Ruby Tests
run: bin/rake test
- name: Upload coverage to Qlty
if: ${{ contains(github.ref, 'main') }}
uses: qltysh/qlty-action/coverage@main
with:
token: ${{secrets.QLTY_COVERAGE_TOKEN}}
files: coverage/.resultset.json