From 9e55ba01a50489090efb2fca985afd8f5f0042a5 Mon Sep 17 00:00:00 2001 From: Stephen von Takach Date: Tue, 25 May 2021 20:08:28 +1000 Subject: [PATCH] chore(CI): add cron and additional crystal versions --- .github/workflows/CI.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 7adcf16..6ab17cd 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,10 +1,22 @@ name: CI -on: [push, pull_request, workflow_dispatch] +on: + push: + pull_request: + workflow_dispatch: + schedule: + - cron: "0 6 * * 1" jobs: build: - runs-on: ubuntu-latest - container: - image: crystallang/crystal + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + crystal: + - latest + - nightly + - 1.0.0 + runs-on: ${{ matrix.os }} + container: crystallang/crystal:${{ matrix.crystal }}-alpine steps: - uses: actions/checkout@v2 - name: Install dependencies @@ -14,4 +26,4 @@ jobs: - name: Format run: crystal tool format --check - name: Run tests - run: crystal spec --error-trace + run: crystal spec -v --error-trace