-
Notifications
You must be signed in to change notification settings - Fork 10
34 lines (32 loc) · 869 Bytes
/
test.yml
File metadata and controls
34 lines (32 loc) · 869 Bytes
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
name: CI
on:
pull_request:
env:
RUSTFLAGS: -Dwarnings
jobs:
check_and_test:
name: It builds and tests pass
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Add wasm32-wasip2 target
run: rustup target add wasm32-wasip2
- name: Install cargo-binstall
uses: cargo-bins/[email protected]
- name: Install cargo-component
shell: bash
run: cargo binstall cargo-component
- name: Run cargo check
shell: bash
run: cargo component check
check_style:
name: It follows all style conventions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install wasm32-wasip2 target
run: rustup target add wasm32-wasip2
- name: Run cargo clippy
run: cargo clippy -- -Dwarnings
- name: Run cargo fmt
run: cargo fmt --all -- --check