-
Notifications
You must be signed in to change notification settings - Fork 53
48 lines (43 loc) · 1.01 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
name: CI
on:
push:
paths:
- 'run-specs-in-docker.sh'
- '.github/workflows/ci.yml'
- 'shard.yml'
- 'shard.lock'
- 'src/**'
- 'spec/**'
- 'test/**'
jobs:
spec:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run tests
run: ./run-specs-in-docker.sh
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
container: 84codes/crystal:1.13.2-ubuntu-22.04
steps:
- uses: actions/checkout@v4
- run: shards install
- run: bin/ameba
format:
runs-on: ubuntu-latest
timeout-minutes: 10
container: 84codes/crystal:1.13.2-ubuntu-22.04
steps:
- uses: actions/checkout@v4
- run: crystal tool format --check
integration:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: PHP client integration test using Docker Compose
run: ./test/integration-php.sh