File tree Expand file tree Collapse file tree 2 files changed +78
-0
lines changed
Expand file tree Collapse file tree 2 files changed +78
-0
lines changed Original file line number Diff line number Diff line change 1+ # SPDX-FileCopyrightText: Copyright (c) 2021-2025 slowtec GmbH <[email protected] >2+ # SPDX-License-Identifier: CC0-1.0
3+
4+ # yaml-language-server: $schema=https://json.schemastore.org/github-workflow
5+
6+ name : build-and-test
7+
8+ permissions :
9+ contents : read
10+
11+ on :
12+ push :
13+ branches :
14+ - main
15+ pull_request :
16+ branches :
17+ - main
18+ workflow_dispatch :
19+
20+ env :
21+ CARGO_TERM_COLOR : always
22+
23+ jobs :
24+ steps :
25+ - name : Install Rust toolchain
26+ uses : dtolnay/rust-toolchain@stable
27+ with :
28+ targets : wasm32-unknown-unknown
29+
30+ - name : Checkout code
31+ uses : actions/checkout@v5
32+
33+ - name : Generate Cargo.lock
34+ run : cargo generate-lockfile
35+
36+ - name : Run tests
37+ run : cargo test --locked --target wasm32-unknown-unknown -- --nocapture --quiet
38+
39+ - name : Build documentation
40+ run : cargo doc --locked --target wasm32-unknown-unknown
41+
42+ - name : Build release
43+ run : cargo build --locked --target wasm32-unknown-unknown --profile release
Original file line number Diff line number Diff line change 1+ # SPDX-FileCopyrightText: Copyright (c) 2021-2025 slowtec GmbH <[email protected] >2+ # SPDX-License-Identifier: CC0-1.0
3+
4+ # yaml-language-server: $schema=https://json.schemastore.org/github-workflow
5+
6+ name : dependency-audit
7+
8+ permissions :
9+ contents : read
10+
11+ on :
12+ push :
13+ paths :
14+ - " **/Cargo.toml"
15+ schedule :
16+ # Weekly, i.e. on Sunday at 04:37 UTC
17+ - cron : " 37 4 * * 0"
18+ workflow_dispatch :
19+
20+ jobs :
21+ run :
22+ runs-on : ubuntu-latest
23+
24+ steps :
25+ - uses : actions/checkout@v5
26+
27+ - name : Generate Cargo.lock
28+ run : cargo generate-lockfile
29+
30+ - uses : EmbarkStudios/cargo-deny-action@v1
31+ with :
32+ command : check
33+ arguments : >-
34+ --all-features
35+ --locked
You can’t perform that action at this time.
0 commit comments