CI: Support for flox env #9
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: CI | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
rust: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run tests | |
run: | | |
cd advent-of-code-2024 | |
cargo test --verbose | |
devbox: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install devbox | |
uses: jetify-com/[email protected] | |
with: | |
project-path: "advent-of-code-2024" | |
enable-cache: "true" | |
- name: Test | |
run: | | |
cd advent-of-code-2024 | |
devbox run test | |
flox: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install flox | |
uses: flox/install-flox-action@v2 | |
- name: Test | |
run: | | |
cd advent-of-code-2024 | |
zig test ./src/day01.zig |