Skip to content

2023 Day 12

2023 Day 12 #13

Workflow file for this run

name: 2023 Rust Tests
on:
push:
paths:
- "2023/**/*"
jobs:
test:
runs-on: ubuntu-latest
# strategy:
# matrix:
# dir: ["path/to/first", "path/to/second", "path/to/third"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Run tests
working-directory: ./2023
run: |
for dir in $(find . -maxdepth 1 -type d -not -name .git); do
if [ -f "$dir/Cargo.toml" ]; then
echo "Running tests in $dir"
cd "$dir"
cargo test
cd -
fi
done