From 9bada2a08ff57e7eebe7232921f119b26273a28c Mon Sep 17 00:00:00 2001 From: Wout Date: Sun, 13 Aug 2023 08:43:08 +0200 Subject: [PATCH] ci: update workflow --- .github/workflows/ci.yml | 56 +++++++++------------------------------- 1 file changed, 12 insertions(+), 44 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 10bcdd4..10a250c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,57 +7,25 @@ on: branches: "*" jobs: - check_format: - strategy: - fail-fast: false - matrix: - shard_file: - - shard.yml - crystal_version: - - 1.6.0 - - latest - experimental: - - false - # include: - # - shard_file: shard.yml - # crystal_version: nightly - # experimental: true - runs-on: ubuntu-latest - continue-on-error: ${{ matrix.experimental }} - steps: - - uses: actions/checkout@v1 - - uses: crystal-lang/install-crystal@v1 - with: - crystal: ${{matrix.crystal_version}} - - name: Install shards - run: SHARDS_OVERRIDE=${{ matrix.shard_file }} shards install - - name: Format - run: crystal tool format --check - - name: Lint - run: ./bin/ameba specs: strategy: fail-fast: false matrix: - shard_file: - - shard.yml - crystal_version: - - 1.6.0 - - latest - experimental: - - false - # include: - # - shard_file: shard.yml - # crystal_version: nightly - # experimental: true - runs-on: ubuntu-latest - continue-on-error: ${{ matrix.experimental }} + # os: [ubuntu-latest, windows-latest] + os: [ubuntu-latest] + crystal_version: [latest] + runs-on: ${{ matrix.os }} + continue-on-error: false steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: crystal-lang/install-crystal@v1 with: - crystal: ${{matrix.crystal_version}} + crystal: ${{ matrix.crystal_version }} - name: Install shards - run: SHARDS_OVERRIDE=${{ matrix.shard_file }} shards install --ignore-crystal-version + run: shards install - name: Run tests run: crystal spec + - name: Check format + run: crystal tool format --check + - name: Lint + run: ./bin/ameba