Skip to content

Commit

Permalink
Set up GitHub Actions to keep things in order
Browse files Browse the repository at this point in the history
Ensure code is in a runnable and healthy state at all times.
  • Loading branch information
ericvw committed Jan 9, 2024
1 parent 6b45990 commit b617701
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/puzzles.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
name: Puzzles

on:
push:
branches:
- main
- 'maint/*'

schedule:
- cron: '0 0 1 * *'

jobs:
aoc-2021:
name: AoC 2021 — Python
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./2021

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up environment
uses: actions/setup-python@v5
with:
python-version: 3.x

- name: Run
run: make

- name: Install auxillary tools
run: pip install -U -r requirements.txt

- name: Lint
run: make lint

aoc-2022:
name: AoC 2022 — Nim
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./2022

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up enviroment
uses: jiro4989/setup-nim-action@v1

- name: Run
run: make
4 changes: 4 additions & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
rules:
truthy:
check-keys: false
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Advent of Code Solutions by ericvw

[![Puzzles](https://github.com/ericvw/advent-of-code/actions/workflows/puzzles.yaml/badge.svg)](https://github.com/ericvw/advent-of-code/actions/workflows/puzzles.yaml)

My solutions to [Advent of Code](https://adventofcode.com/).

0 comments on commit b617701

Please sign in to comment.