-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (39 loc) · 869 Bytes
/
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
name: CI
on: push
env:
CI: true
jobs:
rubocop:
name: Rubocop
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Ruby 3.2.2
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 3.2.2
- name: Run Rubocop
run: bin/rubocop
tests:
name: Tests
runs-on: ubuntu-latest
timeout-minutes: 30
env:
RAILS_ENV: test
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Ruby 3.2.2
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 3.2.2
- name: Setup database
run: bin/rails db:setup
- name: Run tests
run: |
bin/rails test --fail-fast
bin/rails test:system