-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (55 loc) · 1.71 KB
/
Copy pathci.yml
File metadata and controls
61 lines (55 loc) · 1.71 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
61
name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
rust:
name: rust (fmt · clippy · test)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- run: cargo fmt --all --check
- run: cargo clippy --workspace --all-targets -- -D warnings
- run: cargo test --workspace
helm:
name: helm (lint · template)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: azure/setup-helm@v4
with:
version: v3.16.2
- run: helm lint charts/apd
- run: helm lint charts/apd -f charts/apd/ci/dev-values.yaml
# Render with CI values and validate every doc is well-formed YAML.
- run: |
helm template t charts/apd -f charts/apd/ci/dev-values.yaml > /tmp/rendered.yaml
python3 -c "import sys,yaml; list(yaml.safe_load_all(open('/tmp/rendered.yaml')))"
docker:
name: docker (build check)
# On main pushes the edge workflow builds + pushes multi-arch; here we only
# need a fast build check on PRs.
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
# Build amd64 only on CI for speed; the release workflow builds multi-arch.
- uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64
push: false
cache-from: type=gha
cache-to: type=gha,mode=max