-
-
Notifications
You must be signed in to change notification settings - Fork 53
57 lines (56 loc) · 1.58 KB
/
tests.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
48
49
50
51
52
53
54
55
56
57
name: Tests
on:
pull_request:
push:
branches:
- main
schedule:
# Weekly.
- cron: '0 0 * * 0'
jobs:
generator:
name: Check Generator Templates
runs-on: ubuntu-22.04
container:
image: crystallang/crystal
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Run generator tests
run: ./bin/test_specs
template:
name: Check file formatting
runs-on: ubuntu-22.04
container:
image: crystallang/crystal
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Run file formatting
run: crystal ./bin/check-format.cr
exercises:
name: Check exercises Crystal ${{ matrix.crystal }}
runs-on: ubuntu-22.04
strategy:
# Allows running the job multiple times with different configurations
matrix:
crystal: [1.6, 1.7, 1.8, 1.9, 1.10.1]
container:
image: crystallang/crystal:${{ matrix.crystal }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Install jq
run: apt-get update && apt-get install -y jq
- name: Run tests
run: ./bin/test-exercises.sh
exercises-windows:
name: Check exercises Crystal on Windows
runs-on: windows-2022
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
with:
crystal: "1.10.1"
- name: 'Setup jq'
run: choco install jq
- name: Run tests
run: ./bin/test-exercises.ps1