-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (37 loc) · 1 KB
/
verify.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
on:
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
verify:
name: Build & Test
runs-on: ubuntu-latest
steps:
# git checkout
- uses: actions/checkout@v3
# install just
- uses: extractions/setup-just@v1
# setup rust toolchain
# https://github.com/actions-rs/toolchain/issues/126#issuecomment-782989659
- run: rustup show
# cache
- uses: actions/cache@v3
with:
path: scripts/node/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
~/.cargo/.crates.toml
~/.cargo/.crates2.json
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
# verify
- run: just setup
- run: just build
- run: DEBUG=1 just test