use unwrap_or_default #55
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust Workspace Test | |
on: ["push", "pull_request", "workflow_dispatch"] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
folder: [2023, 2024] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@nightly | |
- name: Create empty input.txt for compilation | |
run: for d in ${{matrix.folder}}/day*; do touch $d/input.txt; done | |
- name: Cargo Test | |
run: | | |
cd ${{ matrix.folder }} | |
cargo test --workspace |