Skip to content

Day 19 (#88)

Day 19 (#88) #184

Workflow file for this run

name: "2022"
on:
push:
branches: [main]
pull_request:
branches: [main]
paths:
- .github/workflows/2022.yml
- "2022/**"
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
env:
AOC_2022_ROOT: ${{ github.workspace }}/2022
steps:
- name: Check out repository
uses: actions/checkout@v2
- uses: actions/setup-go@v3
with:
go-version: "1.18"
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
working-directory: ${{ github.workspace }}/2022
args: --config=.golangci-ci.yaml
- name: Test
working-directory: ${{ github.workspace }}/2022
run: |
go test ./...
- name: Coverage
working-directory: ${{ github.workspace }}/2022
run: |
# Prints coverage info just for informational purposes
./coverage.sh
solve-and-time:
runs-on: ubuntu-latest
env:
AOC_2022_ROOT: ${{ github.workspace }}/2022
steps:
- name: Check out repository
uses: actions/checkout@v2
- uses: actions/setup-go@v3
with:
go-version: "1.18"
- name: Build
working-directory: ${{ github.workspace }}/2022
run: |
go build -o ./aoc2022
- name: Solve
working-directory: ${{ github.workspace }}/2022
run: |
./aoc2022 --all
- name: Time
working-directory: ${{ github.workspace }}/2022
run: |
./aoc2022 --all --time