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

31 lines
696 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@v2
- name: cargo check
run: cargo check
test:
runs-on: ubuntu-latest
name: Test
steps:
- uses: actions/checkout@v2
- name: cargo test
run: cargo test
# uncomment to enable clippy lints
# clippy:
# runs-on: ubuntu-latest
# name: Lint (clippy)
# steps:
# - uses: actions/checkout@v2
# - name: cargo clippy
# run: cargo clippy -- -D warnings