-
Notifications
You must be signed in to change notification settings - Fork 0
91 lines (77 loc) · 2.07 KB
/
ruby.yml
File metadata and controls
91 lines (77 loc) · 2.07 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: Github Testing
on: [push]
permissions:
contents: read
id-token: write
jobs:
bundle_audit:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
- name: config bundler
run: |
bundle config set deployment 'false'
bundle env
head -n1 $(which bundle)
- name: Install dependencies
run: |
bundle install --jobs 4 --retry 3
- name: Install bundle-audit
run: gem install bundle-audit
- name: Bundle Audit Check
run: gem exec bundle-audit check --update
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04]
ruby: ['3.2.2']
runs-on: ${{ matrix.os }}
env:
RAILS_ENV: test
COVERAGE: true
DISABLE_SPRING: 1
steps:
- uses: actions/checkout@v5
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: config bundler
run: |
bundle config set deployment 'false'
bundle env
head -n1 $(which bundle)
- name: Install dependencies
run: |
bundle install --jobs 4 --retry 3
- name: Run Tests
run: rake
- name: Setup qlty.sh
run: |
curl -sSL https://qlty.sh/install.sh | bash
export PATH="$HOME/.qlty/bin:$PATH"
qlty --version
- name: Initialize qlty.sh
run: |
export PATH="$HOME/.qlty/bin:$PATH"
qlty init --no
- name: Run qlty.sh analysis
run: |
export PATH="$HOME/.qlty/bin:$PATH"
qlty check
- name: Upload coverage to qlty.sh
uses: qltysh/qlty-action/coverage@v2
with:
oidc: true
files: coverage/.resultset.json
- uses: actions/upload-artifact@v4
with:
name: qlty-report-${{ matrix.ruby }}
path: qlty-report.json
- uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.ruby }}
path: coverage/