salsa/.github/workflows/test.yml

64 lines
1.3 KiB
YAML
Raw Normal View History

2020-06-24 18:22:51 +00:00
name: Test
on:
push:
branches:
- master
2021-05-07 21:40:09 +00:00
- staging
- trying
2020-06-24 18:22:51 +00:00
pull_request:
paths:
- '**.rs'
- '**/Cargo.*'
- '.github/workflows/**.yml'
2020-06-24 18:22:51 +00:00
jobs:
test:
name: Test
strategy:
matrix:
rust:
- stable
- beta
experimental:
- false
include:
- rust: nightly
experimental: true
continue-on-error: ${{ matrix.experimental }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
2021-06-03 11:12:38 +00:00
components: rustfmt, clippy
2020-06-24 18:22:51 +00:00
default: true
2022-08-22 07:38:04 +00:00
- uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- uses: actions-rs/cargo@v1
with:
command: clippy
2022-08-05 18:29:54 +00:00
- uses: actions-rs/cargo@v1
with:
command: check
args: --all
2020-06-24 18:22:51 +00:00
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --all-targets
2022-08-22 07:19:15 +00:00
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --all-targets --package salsa-2022-tests
2020-06-24 18:22:51 +00:00
- uses: actions-rs/cargo@v1
with:
command: test
2020-06-25 11:07:13 +00:00
args: --all-features --doc
2020-07-01 20:42:14 +00:00
- uses: actions-rs/cargo@v1
with:
command: check
args: --no-default-features