Add day 20 and day 21 solutions #45
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 aoc2023 . | |
- name: Build test Docker image | |
run: docker build -t aoc2023-test -f Dockerfile.test . | |
- name: Run tests in Docker container | |
run: docker run --name aoc2023-test-run aoc2023-test | |
- name: Copy test results from Docker container | |
run: docker cp aoc2023-test-run:/opt/aoc/lcov.info . | |
- name: Upload test results to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
files: ./lcov.info | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} |