-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (50 loc) · 1.33 KB
/
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
name: wasm-interpreter-ci
on:
push:
branches-ignore:
- "gh-readonly-queue/**"
# i don't think we should run CI for examples
- "example/**"
pull_request:
merge_group:
jobs:
ci:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
env:
RUSTFLAGS: "-D warnings"
RUSTDOCFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Format
run: cargo check
- name: Run clippy
# for CI we can treat errors as warnings
# for reference see: https://doc.rust-lang.org/clippy/usage.html
run: cargo clippy
- name: Build docs
run: cargo doc --document-private-items --verbose
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
conventional_commit_check:
name: Conventional Commits
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: webiny/[email protected]
msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: taiki-e/install-action@cargo-hack
- run: cargo hack check --rust-version --workspace --all-targets --ignore-private