From 3c8f6287134cc9aa9f4c63a058bda6d8eb8b395a Mon Sep 17 00:00:00 2001 From: Caspian Baska Date: Wed, 20 Oct 2021 15:11:38 +1100 Subject: [PATCH] Add matrix of crystal versions The matrix represents the stated supported version in the `shard.yml` --- .github/workflows/crystal.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/crystal.yml b/.github/workflows/crystal.yml index 43fee48..bbed10a 100644 --- a/.github/workflows/crystal.yml +++ b/.github/workflows/crystal.yml @@ -9,9 +9,24 @@ on: jobs: build: runs-on: ubuntu-latest + name: "crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }}" + continue-on-error: ${{ !matrix.stable }} + strategy: + matrix: + stable: [true] + crystal: + - 0.36.0 + - 0.36.1 + - 1.0.0 + - 1.1.0 + - 1.1.1 + - 1.2.0 + include: + - crystal: nightly + stable: false container: - image: crystallang/crystal + image: crystallang/crystal:${{ matrix.crystal }} steps: - uses: actions/checkout@v2 @@ -31,8 +46,7 @@ jobs: - name: Install dependencies run: shards install - name: Run tests - run: crystal spec -Dpreview_mt --order random -# run: crystal spec -Dpreview_mt --order random --error-on-warnings + run: crystal spec -Dpreview_mt --order random - name: Run bulid run: shards build -Dpreview_mt - name: Run format