forked from patternfly-yew/patternfly-yew
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (43 loc) · 1.26 KB
/
ci.yaml
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
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_call:
# But don't trigger on tags, as they are covered by the "release.yaml" workflow
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
toolchain:
- stable
# MSRV for bumpalo
- "1.73.0"
steps:
- uses: actions/checkout@v4
- name: Install Rust ${{ matrix.toolchain }}
run: |
rustup toolchain install ${{ matrix.toolchain }} --component rustfmt,clippy --target wasm32-unknown-unknown
rustup default ${{ matrix.toolchain }}
- name: Check rustfmt
run:
cargo fmt --all -- --check
- name: Check
run: |
cargo check --release
- name: Test
run: |
cargo test --release
- name: Install binstall
run: |
curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
- name: Install cargo-all-features
run: |
cargo binstall -y cargo-all-features
- name: Check all features
run: |
cargo check-all-features --target wasm32-unknown-unknown