Crystal CI #24
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: 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' |