Implement strongly typed layers #130
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: ["*"] | |
env: | |
MAPBOX_TOKEN: token | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Run build and tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Rust toolchain | |
run: | | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \ | |
--default-toolchain stable \ | |
--profile minimal \ | |
--component rustfmt clippy \ | |
-y | |
- name: Build crate and examples | |
run: | | |
cargo build --workspace --all-targets --all-features | |
pushd examples; cargo build --workspace --all-targets --all-features; popd | |
- name: Clippy | |
run: | | |
cargo clippy --workspace --all-targets --all-features -- --deny clippy::all | |
pushd examples; cargo clippy --workspace --all-targets --all-features -- --deny clippy::all; popd | |
- name: Install nextest | |
uses: taiki-e/install-action@nextest | |
- name: Unit tests | |
run: cargo nextest run --retries 3 |