Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# SPDX-FileCopyrightText: Copyright (c) 2021-2025 slowtec GmbH <[email protected]>
# SPDX-License-Identifier: CC0-1.0

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow

name: build-and-test

permissions:
contents: read

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
steps:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt,clippy
targets: wasm32-unknown-unknown

- name: Checkout code
uses: actions/checkout@v5

- name: Generate Cargo.lock
run: cargo generate-lockfile

- name: Run tests
run: cargo test --locked --target wasm32-unknown-unknown -- --nocapture --quiet

- name: Build documentation
run: cargo doc --locked --target wasm32-unknown-unknown

- name: Build release
run: cargo build --locked --target wasm32-unknown-unknown --profile release
35 changes: 35 additions & 0 deletions .github/workflows/dependency-audit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# SPDX-FileCopyrightText: Copyright (c) 2021-2025 slowtec GmbH <[email protected]>
# SPDX-License-Identifier: CC0-1.0

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow

name: dependency-audit

permissions:
contents: read

on:
push:
paths:
- "**/Cargo.toml"
schedule:
# Weekly, i.e. on Sunday at 04:37 UTC
- cron: "37 4 * * 0"
workflow_dispatch:

jobs:
run:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5

- name: Generate Cargo.lock
run: cargo generate-lockfile

- uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check
arguments: >-
--all-features
--locked