From 7c61572bf9a231b5e080b326c61dcda6c1b90b15 Mon Sep 17 00:00:00 2001 From: Chris Watson Date: Fri, 27 Jan 2023 11:28:05 -0700 Subject: [PATCH] CI --- .github/workflows/crystal.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/crystal.yml diff --git a/.github/workflows/crystal.yml b/.github/workflows/crystal.yml new file mode 100644 index 0000000..586a080 --- /dev/null +++ b/.github/workflows/crystal.yml @@ -0,0 +1,24 @@ +name: Crystal CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + container: + image: crystallang/crystal + + steps: + - uses: actions/checkout@v3 + - name: Check formatting + run: crystal tool format --check + - name: Install dependencies + run: shards install + - name: Run tests + run: crystal spec