Skip to content

[CI] Allow manually triggered CI runs #19

[CI] Allow manually triggered CI runs

[CI] Allow manually triggered CI runs #19

Workflow file for this run

name: Crystal CI
on:
workflow_dispatch:
push:
pull_request:
branches: [master]
schedule:
- cron: "45 14 2 * *" # every 2nd of the month at 14:45
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
# crystal: [latest, nightly]
crystal: [latest] # nightly breaks to often
runs-on: ${{ matrix.os }}
steps:
- name: Download source
uses: actions/checkout@v3
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
with:
crystal: ${{ matrix.crystal }}
- name: Install shards
run: shards install
- name: Run tests
run: crystal spec
- name: Check formatting
run: crystal tool format --check
if: matrix.crystal != 'nightly' && matrix.os == 'ubuntu-latest'