wgpu/.github/workflows/pipeline.yml

68 lines
1.9 KiB
YAML
Raw Normal View History

2021-05-06 16:24:57 +00:00
# Regular testing.
name: pipeline
on: [push, pull_request]
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
2021-01-25 01:44:30 +00:00
rust: [1.43.0, nightly]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- uses: actions-rs/cargo@v1
name: Default test
with:
# Our intention here is to test `naga` with no features enabled. But
# since `cli` is the default package, a plain `cargo test` will build
# `naga` with the features requested in `cli/Cargo.toml`. Passing
# `--package naga` causes us to use the default features in the
# top-level `Cargo.toml` instead.
command: test
args: --package naga
- uses: actions-rs/cargo@v1
name: Test all features
with:
command: test
2021-06-13 12:38:40 +00:00
args: --all-features --workspace
2021-04-14 18:20:48 +00:00
- name: Check snapshots
run: git diff --exit-code -- tests/out
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
2021-06-13 12:38:40 +00:00
args: --all-features --workspace -- -D warnings
2021-07-30 18:29:22 +00:00
documentation:
name: Documentation
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: -Dwarnings
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: doc
args: -p naga --all-features --document-private-items