advent-of-code/.github/workflows/ci.yml

39 lines
934 B
YAML
Raw Normal View History

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:
- 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:
- 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:
# - uses: actions/checkout@v3
2022-10-17 12:19:11 +02:00
# - name: cargo clippy
# run: cargo clippy -- -D warnings
# uncoment to enable format checking
# fmt:
# runs-on: ubuntu-latest
# name: Format
# steps:
# - uses: actions/checkout@v3
# - name: cargo fmt
# run: cargo fmt --check