Skip to content

Commit d5131d2

Browse files
committed
update check
1 parent 1bcbe20 commit d5131d2

File tree

1 file changed

+55
-61
lines changed

1 file changed

+55
-61
lines changed

.github/workflows/check.yml

+55-61
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,59 @@
11
name: Check
22
on:
3-
push:
4-
branches:
5-
- main
6-
pull_request:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
77

88
jobs:
9-
check:
10-
name: cargo check
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v4
14-
- uses: dtolnay/rust-toolchain@stable
15-
with:
16-
target: wasm32-wasip2 # WebAssembly target
17-
components: rustfmt
18-
- run: cargo check
19-
fmt:
20-
name: cargo fmt
21-
runs-on: ubuntu-latest
22-
steps:
23-
- uses: actions/checkout@v4
24-
- uses: dtolnay/rust-toolchain@stable
25-
with:
26-
components: rustfmt
27-
- uses: actions-rust-lang/rustfmt@v1
28-
clippy:
29-
name: clippy
30-
runs-on: ubuntu-latest
31-
permissions:
32-
checks: write
33-
steps:
34-
- uses: actions/checkout@v4
35-
- uses: dtolnay/rust-toolchain@stable
36-
with:
37-
components: clippy
38-
- uses: wearerequired/lint-action@master
39-
with:
40-
clippy: true
41-
build:
42-
name: cargo build
43-
runs-on: ubuntu-latest
44-
steps:
45-
- uses: actions/checkout@v4
46-
- uses: dtolnay/rust-toolchain@stable
47-
with:
48-
target: wasm32-wasip2 # WebAssembly target
49-
- uses: edgee-cloud/[email protected]
50-
- run: edgee component build
51-
- name: Verify .wasm file exists
52-
run: |
53-
if [ ! -f "./dc_component.wasm" ]; then
54-
echo "❌ Error: dc_component.wasm not found" >&2
55-
exit 1
56-
fi
57-
58-
test:
59-
name: cargo test
60-
runs-on: ubuntu-latest
61-
steps:
62-
- uses: actions/checkout@v4
63-
- uses: dtolnay/rust-toolchain@stable
64-
- uses: taiki-e/install-action@cargo-llvm-cov
65-
- run: make test.coverage
9+
check:
10+
name: cargo check
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: dtolnay/rust-toolchain@stable
15+
with:
16+
target: wasm32-wasip2 # WebAssembly target
17+
components: rustfmt
18+
- uses: edgee-cloud/[email protected]
19+
- run: edgee component build
20+
- run: cargo check
21+
fmt:
22+
name: cargo fmt
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: dtolnay/rust-toolchain@stable
27+
with:
28+
components: rustfmt
29+
target: wasm32-wasip2
30+
- uses: edgee-cloud/[email protected]
31+
- run: edgee component build
32+
- uses: actions-rust-lang/rustfmt@v1
33+
clippy:
34+
name: clippy
35+
runs-on: ubuntu-latest
36+
permissions:
37+
checks: write
38+
steps:
39+
- uses: actions/checkout@v4
40+
- uses: dtolnay/rust-toolchain@stable
41+
with:
42+
components: clippy
43+
target: wasm32-wasip2
44+
- uses: edgee-cloud/[email protected]
45+
- run: edgee component build
46+
- uses: wearerequired/lint-action@master
47+
with:
48+
clippy: true
49+
test:
50+
name: cargo test
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v4
54+
- uses: dtolnay/rust-toolchain@stable
55+
with:
56+
target: wasm32-wasip2
57+
- uses: edgee-cloud/[email protected]
58+
- run: edgee component build
59+
- run: make test

0 commit comments

Comments
 (0)