2021-06-08 23:52:00 +00:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
branches: [master]
|
|
|
|
schedule:
|
|
|
|
- cron: '0 6 * * 1' # Every monday 6 AM
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest]
|
2021-06-21 14:53:14 +00:00
|
|
|
crystal: [1.0.0, latest, nightly]
|
2021-06-08 23:52:00 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Install Crystal
|
|
|
|
uses: oprypin/install-crystal@v1
|
|
|
|
with:
|
|
|
|
crystal: ${{ matrix.crystal }}
|
|
|
|
|
|
|
|
- name: Download source
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Run specs
|
|
|
|
run: crystal spec
|
|
|
|
|
|
|
|
- name: Check formatting
|
|
|
|
run: crystal tool format; git diff --exit-code
|
2021-06-21 14:53:14 +00:00
|
|
|
if: matrix.crystal == 'latest' && matrix.os == 'ubuntu-latest'
|