-
Notifications
You must be signed in to change notification settings - Fork 13
54 lines (51 loc) · 1.73 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
name: Build & test project
on:
push:
schedule:
- cron: "0 6 * * *"
jobs:
build:
name: Build & check format
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install clippy on stable
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- run: cargo build
- run: cargo clippy --all-targets --all-features -- -D warnings
- name: Set nightly for cargo fmt
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- run: cargo +nightly fmt -- --check
integration-test:
name: Integration test
if: "!contains(github.event.head_commit.message, 'e2e skip') && !contains(github.event.head_commit.message, 'skip e2e')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-go@v4
with:
go-version: 1.21
- name: Install latest version of Kind
run: go install sigs.k8s.io/kind@v0.19.0
- run: PATH=$(go env GOPATH)/bin:$PATH kind version
- name: Create Kind cluster
run: PATH=$(go env GOPATH)/bin:$PATH kind create cluster --config kind-config.yaml
- name: Install skaffold
run: |
curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64
chmod +x skaffold
sudo mv skaffold /usr/local/bin
- run: skaffold version
- run: make bootstrap
- run: make e2e