Add minesweeper approaches #1382
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
schedule: | |
# Weekly. | |
- cron: '0 0 * * 0' | |
jobs: | |
test-generator: | |
name: Test Generator | |
runs-on: ubuntu-22.04 | |
container: | |
image: crystallang/crystal | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
- name: Run generator tests | |
run: crystal spec test-generator/spec/* | |
test-generator-templates: | |
name: Check Generator Templates | |
runs-on: ubuntu-22.04 | |
container: | |
image: crystallang/crystal | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
- name: Check generator templates tests | |
run: ./bin/test_specs | |
template: | |
name: Check file formatting | |
runs-on: ubuntu-22.04 | |
container: | |
image: crystallang/crystal | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
- 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.8", "1.9", "1.10", "1.11", "1.12.1"] | |
container: | |
image: crystallang/crystal:${{ matrix.crystal }} | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
- 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: | |
- name: Install Crystal | |
uses: crystal-lang/install-crystal@cdf26dcd488490c9939e9d4d62cab169c9e4f20d | |
with: | |
crystal: "1.12.1" | |
- name: 'Setup jq' | |
run: choco install jq | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
- name: Run tests | |
run: ./bin/test-exercises.ps1 |