-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 928 Bytes
/
ci.yaml
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
name: Continuous integration
on: pull_request
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- beta
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
name: Setup toolchain
with:
toolchain: ${{ matrix.rust }}
components: rustfmt, clippy
- name: Build
run: cargo build
- name: Test
env:
CI: true
run: cargo test
- name: Fmt
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy -- -D warnings
docker-test:
runs-on: ubuntu-latest
needs: ci
strategy:
matrix:
binary:
- git-events-runner
- gitrepo-cloner
steps:
- uses: actions/checkout@v4
- name: Test image build
run: docker build -f docker-build/${{matrix.binary}}.dockerfile .