This repository has been archived by the owner on May 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (71 loc) · 1.98 KB
/
test.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Tests
env:
CI: true
on:
workflow_dispatch:
push:
branches:
- "main"
pull_request:
jobs:
test:
name: build-and-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/[email protected]
- uses: Swatinem/rust-cache@v2
- name: Install protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install buf cli
uses: bufbuild/buf-setup-action@v1
with:
version: "1.17.0"
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Build tests
run: cargo test --release --no-run
- name: create kubernetes in docker cluster
uses: helm/[email protected]
with:
version: v0.18.0
config: astria-conductor-test/kubernetes/cluster-config.yml
kubectl_version: v1.27.1
- name: install just
uses: taiki-e/install-action@just
- run: just deploy-ingress-controller
- run: just perform-prepull
- run: just wait-for-ingress-controller
- run: just wait-for-prepull
- name: Run tests
run: cargo test --release
fmt:
name: fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- name: run rustfmt
run: cargo +nightly fmt --all -- --check
clippy:
name: clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/[email protected]
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- name: Install protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: bufbuild/buf-setup-action@v1
with:
version: "1.17.0"
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: run clippy
run: cargo clippy --all --all-targets -- -D warnings