-
-
Notifications
You must be signed in to change notification settings - Fork 6
54 lines (46 loc) · 1.16 KB
/
bats.yml
File metadata and controls
54 lines (46 loc) · 1.16 KB
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
48
49
50
51
52
53
54
name: Bats
on:
workflow_call:
inputs:
crystal:
type: string
default: nightly
shards:
type: string
default: nightly
machine:
required: true
type: string
files:
required: true
type: string
jobs:
run-bats:
runs-on: ${{ inputs.machine }}
strategy:
fail-fast: false
matrix:
file: ${{ fromJson(inputs.files) }}
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v6
- uses: crystal-lang/install-crystal@v1
with:
crystal: ${{ inputs.crystal || 'nightly' }}
shards: ${{ inputs.shards || 'nightly' }}
- name: Setup BATS
uses: mig4/setup-bats@v1
with:
bats-version: 1.9.0
- name: Configure git to not checkout CRLF
run: git config --global --add core.autocrlf false
- name: Install OS-specific dependencies
run: bash ./setup/${{ inputs.machine }}.bash
- name: Test
run: |
bats --pretty --timing --filter-tags !format "test/${{ matrix.file }}"
env:
WINDOWS_BASE_DIR: "/d/a"
TERM: dumb