Add day 12 solution #16
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: build | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
token: ${{ secrets.REPO_TOKEN }} | |
- name: Build main Docker image | |
run: docker build -t aoc2024 . | |
- name: Build test Docker image | |
run: docker build -t aoc2024-test -f Dockerfile.test . | |
- name: Run tests in Docker container | |
run: docker run --name aoc2024-test-run aoc2024-test | |
- name: Copy test results from Docker container | |
run: docker cp aoc2024-test-run:/opt/aoc/lcov.info . | |
- name: Upload test results to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
files: ./lcov.info | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} |