-
Notifications
You must be signed in to change notification settings - Fork 1
68 lines (49 loc) · 1.61 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
60
61
62
63
64
65
66
67
68
name: CI
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
pull_request:
merge_group:
jobs:
ci-tests:
name: "Run tests"
runs-on: ubuntu-22.04-8core
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize submodules
run: git submodule update --init --recursive
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
cache-all-crates: true
- name: Run Clippy fmt
run: |
CARGO_TARGET_DIR="target/clippy" \
RUSTFLAGS="-D warnings" \
cargo clippy --all-features --all-targets --locked
- name: Run Cargo fmt
run: cargo fmt -- --check
- name: Install cargo-nextest
run: cargo install cargo-nextest
- name: Run cargo-nextest
run: cargo nextest run --release --locked
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Check Docker image can be built
uses: docker/build-push-action@v6
with:
context: .
push: false
file: integration-test/Dockerfile
cache-from: type=gha
cache-to: type=gha,mode=max
# - name: Expose GitHub Runtime
# uses: crazy-max/ghaction-github-runtime@v3
# - name: Check Docker image can be built
# run: docker build --cache-to type=gha --cache-from type=gha -f integration-test/Dockerfile --progress=plain .