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:
|
2022-10-17 12:19:11 +02:00
|
|
|
check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Check
|
|
|
|
steps:
|
2022-12-04 18:29:42 +01:00
|
|
|
- uses: actions/checkout@v3
|
2022-10-17 12:19:11 +02:00
|
|
|
- name: cargo check
|
|
|
|
run: cargo check
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Test
|
|
|
|
steps:
|
2022-12-04 18:29:42 +01:00
|
|
|
- uses: actions/checkout@v3
|
2022-10-17 12:19:11 +02:00
|
|
|
- name: cargo test
|
|
|
|
run: cargo test
|
|
|
|
# uncomment to enable clippy lints
|
|
|
|
# clippy:
|
|
|
|
# runs-on: ubuntu-latest
|
|
|
|
# name: Lint (clippy)
|
|
|
|
# steps:
|
2022-12-04 18:29:42 +01:00
|
|
|
# - uses: actions/checkout@v3
|
2022-10-17 12:19:11 +02:00
|
|
|
# - name: cargo clippy
|
|
|
|
# run: cargo clippy -- -D warnings
|
2022-12-04 18:28:49 +01:00
|
|
|
# uncoment to enable format checking
|
|
|
|
# fmt:
|
|
|
|
# runs-on: ubuntu-latest
|
|
|
|
# name: Format
|
|
|
|
# steps:
|
|
|
|
# - uses: actions/checkout@v3
|
|
|
|
# - name: cargo fmt
|
|
|
|
# run: cargo fmt --check
|