-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (55 loc) · 1.68 KB
/
check.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
56
57
58
59
60
61
62
63
64
65
66
67
name: Check
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check-rpc-provider:
name: Check RPC provider
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
env:
GOMPLATE_VERSION: 3.11.5
MILLER_VERSION: 6.8.0
run: |
BIN_PATH=$HOME/.local/bin
rm -rf ${BIN_PATH} || true
mkdir -p ${BIN_PATH}
# gomplate
curl -L -o ${BIN_PATH}/gomplate \
https://github.com/hairyhenderson/gomplate/releases/download/v${GOMPLATE_VERSION}/gomplate_linux-amd64
# miller
curl -LO https://github.com/johnkerl/miller/releases/download/v${MILLER_VERSION}/miller-${MILLER_VERSION}-linux-386.tar.gz
tar -zxf miller-${MILLER_VERSION}-linux-386.tar.gz -C ./
mv miller-${MILLER_VERSION}-linux-386/mlr $BIN_PATH/
# set execute permission
chmod +x ${BIN_PATH}/gomplate
chmod +x ${BIN_PATH}/mlr
# clean
rm -rf miller-*
- name: Generate cds
run: scripts/generate-cds.sh
- name: Preview changes
env:
GITHUB_TOKEN: ${{ secrets.GH_TKN_DARWINIA }}
run: cat dist/cds.local.yaml
check-fishnet:
name: Check fishnet
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Lint
run: |
cd analysis/fishnet
cargo clippy --release --all -- -D warnings
- name: Run tests
run: |
cd analysis/fishnet
cargo test --release