-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (50 loc) · 1.22 KB
/
ci.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
name: "CI"
on:
pull_request:
push:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
checks: write
env:
RAILS_ENV: test
strategy:
fail-fast: true
matrix:
ruby: ["3.0", "3.1", "3.2", "3.3"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Ruby and gems
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}
- name: Run RSpec Tests
timeout-minutes: 20
run: bundle exec rspec -f doc
lint:
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Ruby and gems
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: "3.3"
- name: Bundle Audit Check
run: bundle exec bundle-audit update && bundle exec bundle-audit check
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Run pre-commit
uses: instrumentl/pre-commit-action@v4