-
Notifications
You must be signed in to change notification settings - Fork 563
60 lines (46 loc) · 1.1 KB
/
ci.yml
File metadata and controls
60 lines (46 loc) · 1.1 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
name: CI
on:
push:
branches: [ 8-1-stable, main ]
pull_request:
branches: [ 8-1-stable, main ]
schedule:
- cron: '0 4 * * 0'
jobs:
test:
name: Run test suite
runs-on: ubuntu-latest
timeout-minutes: 10
env:
COMPOSE_FILE: compose.ci.yaml
strategy:
fail-fast: false
matrix:
ruby:
- 3.4.7
- 3.3.9
- 3.2.9
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build docker images
run: docker compose build --build-arg TARGET_VERSION=${{ matrix.ruby }}
- name: Run tests
run: docker compose run ci
standardrb:
name: Code linting and formatting
runs-on: ubuntu-latest
env:
COMPOSE_FILE: compose.ci.yaml
strategy:
fail-fast: false
matrix:
ruby:
- 3.4.1
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build docker images
run: docker compose build --build-arg TARGET_VERSION=${{ matrix.ruby }}
- name: Run standardrb
run: docker compose run standardrb