-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (51 loc) · 1.58 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
name: Tests for Gravity Info
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
check-althea-info-server:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
with:
workspaces: "althea-info-server/"
- name: Check rust
run: cd althea-info-server && cargo check --all
test-althea-info-server:
needs: check-althea-info-server
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
with:
workspaces: "althea-info-server/"
- name: Run althea-info-server tests
run: cd althea-info-server && cargo test --verbose --all
rustfmt-althea-info-server:
needs: check-althea-info-server
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check code formatting
run: cd althea-info-server && rustup component add rustfmt && cargo fmt --all -- --check
clippy-althea-info-server:
needs: check-althea-info-server
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
with:
workspaces: "althea-info-server/"
- name: Check for Clippy lints
run: cd althea-info-server && rustup component add clippy && cargo clippy --all --all-targets --all-features -- -D warnings
build-althea-info-dash:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build node
run: cd althea-info-dash && yarn && yarn build --frozen-lockfile