From ff0f3874e2ee468b5431021950b9f1fc49bfa701 Mon Sep 17 00:00:00 2001 From: GrantBirki Date: Wed, 10 Jan 2024 12:45:41 -0700 Subject: [PATCH] add test job --- .github/workflows/test.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..9a5fc95 --- /dev/null +++ b/.github/workflows/test.yml @@ -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/install-crystal@v1.8.1 + with: + crystal: ${{ steps.crystal-version.outputs.crystal }} + + - name: test + run: script/test