-
Notifications
You must be signed in to change notification settings - Fork 563
59 lines (45 loc) · 1.26 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
52
53
54
55
56
57
58
59
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '0 4 * * *'
jobs:
test:
name: Run test suite
runs-on: ubuntu-20.04 # TODO: Change back to 'ubuntu-latest' when https://github.com/microsoft/mssql-docker/issues/899 resolved.
env:
COMPOSE_FILE: compose.ci.yaml
strategy:
fail-fast: false
matrix:
ruby:
- 3.4.1
- 3.3.6
- 3.2.6
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-20.04 # TODO: Change back to 'ubuntu-latest' when https://github.com/microsoft/mssql-docker/issues/899 resolved.
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