Skip to content

Commit

Permalink
Add test action
Browse files Browse the repository at this point in the history
  • Loading branch information
jakcharvat committed Dec 4, 2024
1 parent f390dcf commit eb5b493
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

- name: Set up Erlang
uses: erlef/setup-beam@v1
with:
otp-version: '26'
gleam-version: '1.6.2'

- name: Run tests
run: |
for d in day*; do
if [ -d "$d" ]; then
echo "Testing $d"
cd "$d"
gleam test || exit 1
cd ..
fi
done

0 comments on commit eb5b493

Please sign in to comment.