Skip to content

Commit 906f0a5

Browse files
committed
Add GHA CI workflow
1 parent c13ec64 commit 906f0a5

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [master]
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
10+
jobs:
11+
test:
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os: [ubuntu-latest, macos-latest]
16+
crystal: [latest, nightly]
17+
runs-on: ${{ matrix.os }}
18+
19+
steps:
20+
- name: Install Crystal
21+
uses: crystal-lang/install-crystal@v1
22+
with:
23+
crystal: ${{ matrix.crystal }}
24+
25+
- name: Download source
26+
uses: actions/checkout@v5
27+
28+
- name: Install dependencies
29+
run: shards install
30+
31+
- name: Run specs
32+
run: crystal spec
33+
34+
- name: Check formatting
35+
run: crystal tool format --check
36+
if: success() || failure()
37+
38+
- name: Run ameba linter
39+
run: bin/ameba
40+
if: success() || failure()

0 commit comments

Comments
 (0)