Skip to content

Commit 41d6899

Browse files
committed
Create test.yml
1 parent 0d5b444 commit 41d6899

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
env:
5+
RUSTFLAGS: -Dwarnings
6+
7+
jobs:
8+
check_and_test:
9+
name: It builds and tests pass
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Install cargo-binstall
14+
uses: cargo-bins/[email protected]
15+
- name: Install wkg
16+
shell: bash
17+
run: cargo binstall cargo-component
18+
- name: Install Wasmtime
19+
shell: bash
20+
run: curl https://wasmtime.dev/install.sh -sSf | bash
21+
- name: check
22+
shell: bash
23+
run: cargo component check
24+
- name: test
25+
shell: bash
26+
run: cargo component test
27+
28+
check_style:
29+
name: It follows all style conventions
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v4
33+
- name: clippy
34+
run: cargo clippy -- -Dwarnings
35+
- name: fmt
36+
run: cargo fmt --all -- --check

0 commit comments

Comments
 (0)