From 7643fc4a443505d5c68ea748fa0a883c39073fdd Mon Sep 17 00:00:00 2001 From: Jeremy Woertink Date: Sun, 29 May 2022 15:19:21 -0700 Subject: [PATCH] Lock to Crystal 1.4 or later (#68) --- .github/workflows/ci.yml | 28 +++++++++------------------- .github/workflows/docs.yml | 3 +-- shard.yml | 4 ++-- 3 files changed, 12 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b6f0df0..f9ab8b6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,19 +10,14 @@ jobs: check_format: strategy: fail-fast: false - matrix: - crystal_version: - - 1.0.0 - - 1.1.0 - - 1.2.0 - - 1.3.0 - experimental: - - false runs-on: ubuntu-latest - continue-on-error: ${{ matrix.experimental }} - container: crystallang/crystal:${{ matrix.crystal_version }}-alpine + continue-on-error: false steps: - uses: actions/checkout@v1 + - name: Install Crystal + uses: crystal-lang/install-crystal@v1 + with: + crystal: latest - name: Install shards run: shards install - name: Format @@ -34,22 +29,17 @@ jobs: fail-fast: false matrix: crystal_version: - - 1.0.0 - - 1.1.0 - - 1.2.0 - - 1.3.0 + - 1.4.0 + - latest experimental: - false runs-on: ubuntu-latest continue-on-error: ${{ matrix.experimental }} - container: crystallang/crystal:${{ matrix.crystal_version }}-alpine steps: - uses: actions/checkout@v2 - - name: Cache Crystal - uses: actions/cache@v1 + - uses: crystal-lang/install-crystal@v1 with: - path: ~/.cache/crystal - key: ${{ runner.os }}-crystal + crystal: ${{matrix.crystal_version}} - name: Install dependencies run: shards install - name: Create .env file diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 82b4e71..450bb30 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -7,12 +7,11 @@ on: jobs: deploy: runs-on: ubuntu-latest - container: - image: crystallang/crystal:0.36.1 steps: - uses: actions/checkout@v2 with: persist-credentials: false + - uses: crystal-lang/install-crystal@v1 - name: "Install shards" run: shards install - name: "Generate docs" diff --git a/shard.yml b/shard.yml index b4248f4..66e0330 100644 --- a/shard.yml +++ b/shard.yml @@ -4,7 +4,7 @@ version: 0.2.1 authors: - Paul Smith -crystal: ">= 1.0.0" +crystal: ">= 1.4.0" license: MIT @@ -32,7 +32,7 @@ development_dependencies: version: ~> 0.1.4 ameba: github: crystal-ameba/ameba - version: ~> 0.14.3 + version: ~> 1.0.0 scripts: postinstall: BUILD_WITHOUT_DEVELOPMENT=true script/precompile_tasks