-
-
Notifications
You must be signed in to change notification settings - Fork 6
47 lines (41 loc) · 1.01 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: CI
on:
push:
pull_request:
workflow_dispatch:
inputs:
crystal:
type: string
default: nightly
shards:
type: string
default: nightly
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.inputs }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, windows-2022, macos-13, macos-14]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- uses: crystal-lang/install-crystal@v1
with:
crystal: ${{ github.event.inputs.crystal || 'nightly' }}
shards: ${{ github.event.inputs.shards || 'nightly' }}
- name: Setup BATS
uses: mig4/setup-bats@v1
with:
bats-version: 1.9.0
- name: Test
run: |
bats --pretty --timing test
env:
WINDOWS_BASE_DIR: "/d/a"
TERM: dumb