add justfile #3
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
# This GitHub Workflow performs continuous integration on my Advent of Code project, | |
# where each job handles a separate language sub-project. | |
# | |
# Haskell sub-project is currently WIP. | |
# | |
name: "Continuous Integration" | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "v*" | |
pull_request: | |
jobs: | |
scala-build-and-test: | |
name: "Scala - Build and Test" | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
jvm: | |
- "temurin:21" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: "Checkout repository" | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: "Setup Scala-CLI project using VirtusLab action" | |
uses: VirtusLab/[email protected] | |
with: | |
jvm: ${{ matrix.jvm }} | |
- name: "Compile Scala-CLI project" | |
run: scala-cli compile advent-of-code-scala | |
- name: "Run Tests" | |
run: scala-cli test advent-of-code-scala | |
- name: "Sanity check by running solution for Day 1 of 2015" | |
run: scala-cli run advent-of-code-scala --main-class solutions.y2015.day01.run |