-
Notifications
You must be signed in to change notification settings - Fork 289
58 lines (57 loc) · 1.45 KB
/
build_test.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
name: Build and Test
on:
workflow_dispatch:
pull_request:
branches:
- dag-master
jobs:
build-and-test:
name: build and test
runs-on: self-hosted
timeout-minutes: 120
steps:
- name: checkout
uses: actions/checkout@v1
with:
submodules: recursive
- name: run fmt check
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- name: setup environment
run: bash ./scripts/dev_setup.sh -b -t -y -m
- name: run cargo clean
uses: actions-rs/cargo@v1
with:
command: clean
- name: run cargo check
uses: actions-rs/cargo@v1
env:
RUSTFLAGS: -Wclippy::use_self -D warnings
with:
command: clippy
args: --all-targets
- name: build
uses: actions-rs/cargo@v1
with:
command: build
args: --all
- name: test
run: ./scripts/nextest.sh
# - name: check changed files
# run: bash ./scripts/changed_files.sh
- name: Doc Tests
uses: actions-rs/cargo@v1
with:
command: test
args: --doc
- name: integration test dev environment
env:
RUST_LOG: info
RUST_BACKTRACE: full
STARCOIN_WS: ${{ secrets.STARCOIN_WS }}
uses: actions-rs/cargo@v1
with:
command: test
args: --test integration -- -e cmd