Skip to content

Commit

Permalink
add test job
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBirki committed Jan 10, 2024
1 parent ad3ab4b commit ff0f387
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: test

on:
push:
branches:
- main
pull_request:

permissions:
contents: read

jobs:
test:
name: test
runs-on: ubuntu-latest

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

- name: fetch crystal version
id: crystal-version
run: echo "crystal=$(cat .crystal-version)"

- name: install crystal
uses: crystal-lang/[email protected]
with:
crystal: ${{ steps.crystal-version.outputs.crystal }}

- name: test
run: script/test

0 comments on commit ff0f387

Please sign in to comment.