lohr/.github/workflows/ci.yaml

42 lines
851 B
YAML
Raw Normal View History

2023-12-12 15:18:32 +01:00
on: [push, pull_request, workflow_dispatch]
2021-03-30 00:17:29 +02:00
name: CI
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
2023-12-12 15:15:56 +01:00
uses: actions/checkout@v4
2021-03-30 00:17:29 +02:00
2021-03-31 13:48:15 +02:00
- name: Install stable toolchain
2023-12-12 15:15:56 +01:00
uses: dtolnay/rust-toolchain@stable
2021-03-30 00:17:29 +02:00
2023-12-12 15:15:56 +01:00
- run: cargo check
2021-03-30 00:17:29 +02:00
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- name: Checkout sources
2023-12-12 15:15:56 +01:00
uses: actions/checkout@v4
2021-03-30 00:17:29 +02:00
2021-03-31 13:48:15 +02:00
- name: Install stable toolchain
2023-12-12 15:15:56 +01:00
uses: dtolnay/rust-toolchain@stable
2021-03-30 00:17:29 +02:00
2023-12-12 15:15:56 +01:00
- run: cargo test
2021-03-30 00:17:29 +02:00
lints:
name: Lints
runs-on: ubuntu-latest
steps:
- name: Checkout sources
2023-12-12 15:15:56 +01:00
uses: actions/checkout@v4
2021-03-30 00:17:29 +02:00
2021-03-31 13:48:15 +02:00
- name: Install stable toolchain
2023-12-12 15:15:56 +01:00
uses: dtolnay/rust-toolchain@stable
2021-03-30 00:17:29 +02:00
2023-12-12 15:15:56 +01:00
- run: cargo fmt --all -- --check
- run: cargo clippy --all-features -- -D warnings