-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (26 loc) · 849 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# SPDX-FileCopyrightText: 2022 Sebastian Andersson <sebastian@bittr.nu>
#
# SPDX-License-Identifier: GPL-3.0-or-later
name: Continuous Integration
on: push
env:
CARGO_TERM_COLOR: always
jobs:
check:
runs-on: ubuntu-latest
name: Check
steps:
- uses: actions/checkout@v3
- name: Create missing input
run: mkdir -p input/2022; seq 1 25 | while read day; do touch input/2022/day$day.txt; done
- name: cargo check
run: cargo check
test:
runs-on: ubuntu-latest
name: Test
steps:
- uses: actions/checkout@v3
- name: Create missing input
run: mkdir -p input/2022; seq 1 25 | while read day; do touch input/2022/day$day.txt; done
- name: cargo test
run: cargo test