Skip to content

CI

CI #96

Workflow file for this run

name: CI
on:
push:
schedule:
- cron: "0 6 * * 1"
jobs:
style:
runs-on: ubuntu-latest
container:
image: crystallang/crystal
steps:
- uses: actions/checkout@v2
- name: Format
run: crystal tool format --check
- name: Lint
uses: crystal-ameba/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
test:
runs-on: ubuntu-latest
name: "Test - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }}"
continue-on-error: ${{ !matrix.stable }}
strategy:
fail-fast: false
matrix:
stable: [true]
crystal:
- latest
include:
- crystal: nightly
stable: false
steps:
- uses: crystal-lang/install-crystal@v1
with:
crystal: ${{ matrix.crystal }}
- uses: actions/checkout@v2
- name: Install dependencies
run: shards install
- name: Run tests
run: crystal spec -v --error-trace --order=random