Skip to content

Commit 90d4d26

Browse files
committed
ci: add test task on github
1 parent 565355a commit 90d4d26

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/main.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This CI job installs Crystal and shard dependencies, then executes `crystal spec` to run the test suite
2+
# More configuration options are available at https://crystal-lang.github.io/install-crystal/configurator.html
3+
4+
name: Exec Lib
5+
6+
on:
7+
workflow_dispatch:
8+
pull_request:
9+
push:
10+
branches:
11+
- master
12+
- dev
13+
14+
concurrency:
15+
group: ${{ github.sha }}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
test:
20+
strategy:
21+
matrix:
22+
crystal:
23+
- 1.0.0
24+
- latest
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Download source
28+
uses: actions/checkout@v4
29+
- name: Install Crystal
30+
uses: crystal-lang/install-crystal@v1
31+
with:
32+
crystal: ${{ matrix.crystal }}
33+
- name: Install shards
34+
run: shards update --ignore-crystal-version
35+
- name: Check formatting
36+
run: crystal tool format --check
37+
- name: Run tests
38+
run: crystal spec --order=random

0 commit comments

Comments
 (0)