Skip to content

Commit dbb78b1

Browse files
split up lint and spec ci
1 parent 14e4d8a commit dbb78b1

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- main
1010

1111
jobs:
12-
lint:
12+
specs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
@@ -52,12 +52,33 @@ jobs:
5252
- name: Run Crystal specs
5353
run: crystal spec -p -s
5454

55+
lint:
56+
strategy:
57+
fail-fast: false
58+
matrix:
59+
ameba-version: [v1.6.4]
60+
include:
61+
- { os: ubuntu-latest, crystal: latest }
62+
- { os: ubuntu-latest, crystal: nightly }
63+
- { os: macos-latest }
64+
- { os: windows-latest }
65+
66+
runs-on: ${{ matrix.os }}
67+
steps:
68+
- name: Checkout code
69+
uses: actions/checkout@v4
70+
71+
- name: Set up Crystal
72+
uses: crystal-lang/install-crystal@v1
73+
with:
74+
crystal: ${{matrix.crystal}}
75+
5576
- name: Cache Ameba binary
5677
id: cache-ameba
5778
uses: actions/cache@v3
5879
with:
5980
path: bin/ameba
60-
key: ${{ runner.os }}-ameba-${{ matrix.ameba-version }}-${{ matrix.crystal }}
81+
key: ${{ matrix.os }}-ameba-${{ matrix.ameba-version }}-${{ matrix.crystal }}
6182

6283
- name: Build Ameba
6384
if: steps.cache-ameba.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)