feat: add caching helper stale? #346
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: CI | |
on: | |
push: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 6 * * 1" | |
jobs: | |
crystal-style: | |
name: Crystal Style | |
uses: PlaceOS/.github/.github/workflows/crystal-style.yml@main | |
test: | |
name: "${{ !matrix.stable && '🚧 ' || '' }}crystal: ${{ matrix.crystal }}, MT: ${{ matrix.MT && '☑' || '☐' }}" | |
strategy: | |
fail-fast: false | |
matrix: | |
MT: [true, false] | |
stable: [true] | |
crystal: | |
- latest | |
include: | |
- crystal: nightly | |
MT: true | |
stable: false | |
- crystal: nightly | |
MT: false | |
stable: false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install crystal | |
uses: crystal-lang/install-crystal@v1 | |
with: | |
crystal: ${{ matrix.crystal }} | |
- name: Install dependencies | |
run: shards install --ignore-crystal-version --skip-postinstall --skip-executables | |
- name: Test ${{ matrix.MT && 'Multithreaded' || '' }} | |
run: | | |
crystal spec \ | |
--error-trace \ | |
${{ matrix.MT && '-Dpreview_mt' || '' }} \ | |
--order random \ | |
--verbose |