aoc_2024/.github/workflows/solve.yaml
Logiar 3992e5f484
All checks were successful
Solve / example-action (push) Successful in 31s
Forgot to set validate mode for tests.
2024-12-03 08:28:42 +01:00

32 lines
849 B
YAML

name: Solve
on:
push:
branches:
- main
jobs:
example-action:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'corretto' # See 'Supported distributions' for available options
java-version: '21'
- uses: https://github.com/fwilhe2/setup-kotlin@main
- name: Run tests
run: ./simpletest.sh validate
- name: Solutions
run: |
set -e
for script in $(ls *.kts | sort -r); do
echo "Running $script" | tee -a solutions-output.txt
kotlin $script 2>&1 | tee -a solutions-output.txt
done
- name: Upload Solutions Output
uses: actions/upload-artifact@v3
with:
name: solutions-output
path: solutions-output.txt