nushell/.github/workflows/ci.yml

43 lines
920 B
YAML
Raw Normal View History

2021-11-09 07:14:14 +01:00
on: [pull_request]
2021-09-04 09:52:28 +02:00
name: Continuous integration
jobs:
ci:
strategy:
matrix:
2021-10-11 21:19:43 +02:00
platform: [ubuntu-latest, macos-latest, windows-latest]
2021-09-04 09:52:28 +02:00
rust:
- stable
2021-10-11 21:19:43 +02:00
runs-on: ${{ matrix.platform }}
2021-09-04 09:52:28 +02:00
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy
2021-09-04 10:05:36 +02:00
- uses: actions-rs/cargo@v1
with:
command: build
2021-09-04 09:52:28 +02:00
- uses: actions-rs/cargo@v1
with:
command: test
args: --all --all-features
2021-09-04 09:52:28 +02:00
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all --all-features -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect