CI #1274
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: "*" | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
qa: | |
runs-on: ubuntu-latest | |
container: | |
image: crystallang/crystal:1.9.2 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install shards | |
run: shards install --ignore-crystal-version | |
- name: QA checks | |
run: make qa | |
specs: | |
strategy: | |
fail-fast: false | |
matrix: | |
crystal: | |
- latest | |
- nightly | |
- 1.11.2 | |
- 1.12.2 | |
- 1.13.0 | |
runs-on: ubuntu-latest | |
container: | |
image: crystallang/crystal:${{ matrix.crystal }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install shards | |
run: shards install --ignore-crystal-version | |
- name: Cache Crystal | |
uses: actions/cache@v1 | |
with: | |
path: ~/.cache/crystal | |
key: ${{ runner.os }}-crystal | |
- name: Run tests | |
run: make tests |