2022-10-17 12:19:11 +02:00
|
|
|
name: Continuous Integration
|
2021-12-29 14:12:01 +01:00
|
|
|
|
2022-10-17 12:19:11 +02:00
|
|
|
on: push
|
2021-12-29 14:12:01 +01:00
|
|
|
|
|
|
|
env:
|
2022-10-17 12:19:11 +02:00
|
|
|
CARGO_TERM_COLOR: always
|
2021-12-29 14:12:01 +01:00
|
|
|
|
|
|
|
jobs:
|
2024-11-08 16:36:18 +01:00
|
|
|
ci:
|
2022-10-17 12:19:11 +02:00
|
|
|
runs-on: ubuntu-latest
|
2024-11-08 16:36:18 +01:00
|
|
|
name: Continuous Integration
|
2022-10-17 12:19:11 +02:00
|
|
|
steps:
|
2024-11-08 16:36:18 +01:00
|
|
|
- uses: actions/checkout@v4
|
2023-10-21 21:22:31 +02:00
|
|
|
- name: Set up cargo cache
|
2024-11-08 16:36:18 +01:00
|
|
|
uses: actions/cache@v4
|
2023-10-21 21:22:31 +02:00
|
|
|
continue-on-error: false
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.cargo/bin/
|
|
|
|
~/.cargo/registry/index/
|
|
|
|
~/.cargo/registry/cache/
|
|
|
|
~/.cargo/git/db/
|
|
|
|
target/
|
|
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
|
|
restore-keys: ${{ runner.os }}-cargo-
|
2022-10-17 12:19:11 +02:00
|
|
|
- name: cargo test
|
|
|
|
run: cargo test
|
2023-10-21 21:23:46 +02:00
|
|
|
# uncomment to enable clippy linter
|
2023-10-21 21:22:31 +02:00
|
|
|
# - name: cargo clippy
|
|
|
|
# run: cargo clippy -- -D warnings
|
2023-10-21 21:23:46 +02:00
|
|
|
# uncomment to enable format linter
|
2023-10-21 21:22:31 +02:00
|
|
|
# - name: cargo fmt
|
|
|
|
# run: cargo fmt --check
|