Skip to content

Bump Crystal from 1.19.1 to 1.20.3 (#773) #1696

Bump Crystal from 1.19.1 to 1.20.3 (#773)

Bump Crystal from 1.19.1 to 1.20.3 (#773) #1696

Workflow file for this run

name: Tests
on:
pull_request:
push:
branches:
- main
schedule:
# Weekly.
- cron: '0 0 * * 0'
jobs:
test-generator:
name: Test Generator
runs-on: ubuntu-24.04
container:
image: crystallang/crystal:1.20.3
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
- name: Run generator tests
run: crystal spec test-generator
test-generator-templates:
name: Check Generator Templates
runs-on: ubuntu-24.04
container:
image: crystallang/crystal:1.20.3
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
- name: Check generator templates tests
run: ./bin/test_specs
template:
name: Check file formatting
runs-on: ubuntu-24.04
container:
image: crystallang/crystal:1.20.3
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
- name: Run file formatting
run: crystal ./bin/check-format.cr
exercises:
name: Check exercises Crystal ${{ matrix.crystal }}
runs-on: ubuntu-24.04
strategy:
# Allows running the job multiple times with different configurations
matrix:
crystal: ["1.17", "1.18", "1.19.1", "1.20.3"]
container:
image: crystallang/crystal:${{ matrix.crystal }}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
- 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-2025
steps:
- name: Install Crystal
uses: crystal-lang/install-crystal@d8ef131ecec0352ce0e39b81b0a6d95def58fe2f
with:
crystal: "1.20.3"
- name: 'Setup jq'
run: choco install jq
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
- name: Run tests
run: ./bin/test-exercises.ps1