Compare commits
1 Commits
b060de20c7
...
045ff818bd
Author | SHA1 | Date | |
---|---|---|---|
045ff818bd |
14
.github/workflows/test.yaml
vendored
14
.github/workflows/test.yaml
vendored
@ -8,8 +8,8 @@ env:
|
|||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
setup:
|
||||||
name: AoC 2024
|
name: Setup
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@ -45,7 +45,10 @@ jobs:
|
|||||||
cargo aoc input --year 2024 --day $i
|
cargo aoc input --year 2024 --day $i
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Test and Lint
|
||||||
|
steps:
|
||||||
- name: cargo test
|
- name: cargo test
|
||||||
run: cargo test --lib --all-features
|
run: cargo test --lib --all-features
|
||||||
|
|
||||||
@ -54,6 +57,9 @@ jobs:
|
|||||||
|
|
||||||
- name: clippy
|
- name: clippy
|
||||||
run: cargo clippy --lib --all-features --tests -- -D warnings
|
run: cargo clippy --lib --all-features --tests -- -D warnings
|
||||||
|
run:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Full run
|
||||||
|
steps:
|
||||||
- name: full run
|
- name: full run
|
||||||
run: cargo run --release
|
run: cargo run --release
|
||||||
|
@ -89,7 +89,7 @@ pub fn part2(input: &str) -> IntType {
|
|||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
pub const EXAMPLE: &str = "125 17";
|
pub const EXAMPLE: &str = &"125 17";
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn part1_example() {
|
fn part1_example() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user