2022-09-22 06:12:02 +02:00
|
|
|
name: Code Quality
|
2022-09-22 06:06:28 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches: [ "main" ]
|
|
|
|
push:
|
|
|
|
branches: [ "main" ]
|
|
|
|
|
|
|
|
jobs:
|
2022-09-22 06:12:02 +02:00
|
|
|
code-check:
|
2022-09-22 06:06:28 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Installing Rust toolchain
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
2022-09-22 06:09:16 +02:00
|
|
|
toolchain: stable
|
|
|
|
override: true
|
2022-09-22 06:06:28 +02:00
|
|
|
components: rustfmt, clippy
|
|
|
|
|
|
|
|
- name: Format
|
|
|
|
run: cargo fmt --check
|
|
|
|
|
|
|
|
- name: Lint
|
|
|
|
run: cargo clippy
|
|
|
|
|
|
|
|
- name: Tests
|
|
|
|
run: cargo test
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: cargo build --verbose
|