-
Notifications
You must be signed in to change notification settings - Fork 5
64 lines (53 loc) · 1.62 KB
/
rs-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
56
57
58
59
60
61
62
63
64
name: '[rs] CI'
on:
push:
branches: [master]
paths:
- '.cargo/**'
- '.github/workflows/rs-*.yml' # No biggie to trigger this on changes in rs-release.yml
- 'examples/**'
- 'rs/**'
- 'templates/**'
- 'Cargo.lock'
- 'Cargo.toml'
- 'rust-toolchain.toml'
pull_request:
paths:
- '.cargo/**'
- '.github/workflows/rs-*.yml' # No biggie to trigger this on changes in rs-release.yml
- 'examples/**'
- 'rs/**'
- 'templates/**'
- 'Cargo.lock'
- 'Cargo.toml'
- 'rust-toolchain.toml'
env:
CARGO_TERM_COLOR: always
jobs:
check:
name: Check Code
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Free Disk Space
uses: ./.github/actions/free-disk-space
- name: Install wasm-opt
uses: ./.github/actions/install-wasm-utils
- name: Check Code Formatting
run: |
__GEAR_WASM_BUILDER_NO_FEATURES_TRACKING=1 cargo fmt --all --check
- name: Check Code With Clippy
run: |
__GEAR_WASM_BUILDER_NO_FEATURES_TRACKING=1 cargo clippy --workspace --all-targets --locked -- -D warnings
- name: Check IDL Parser For WASM With Clippy
run: |
__GEAR_WASM_BUILDER_NO_FEATURES_TRACKING=1 cargo clippy -p sails-idl-parser --all-targets --locked --target=wasm32-unknown-unknown -- -D warnings
test:
name: Run Workflow Tests
uses: ./.github/workflows/rs-run-ws-tests.yml
with:
gear_node_version: 1.6.0
test-cli:
name: Run CLI Tests
uses: ./.github/workflows/rs-run-cli-tests.yml