Use GitHub Actions for CI

Runs against Ubunut/macOS for latest version and introduce weekly on
schedule to run it against nightly versions.
This commit is contained in:
Luis Lavena 2021-01-30 20:56:30 -03:00
parent b7fcf6fcb0
commit 9a1b56c020
2 changed files with 49 additions and 0 deletions

23
.github/workflows/ci-nightly.yml vendored Normal file
View file

@ -0,0 +1,23 @@
name: CI (nightly)
on:
push:
pull_request:
schedule:
- cron: '0 6 * * 1' # Every monday 6 AM
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- {os: ubuntu-latest, crystal: nightly}
- {os: macos-latest, crystal: nightly}
runs-on: ${{matrix.os}}
steps:
- uses: oprypin/install-crystal@v1
with:
crystal: ${{matrix.crystal}}
- uses: actions/checkout@v2
- run: crystal spec --error-on-warnings --error-trace

26
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,26 @@
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- '*'
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- {os: ubuntu-latest, crystal: latest}
- {os: macos-latest, crystal: latest}
runs-on: ${{matrix.os}}
steps:
- uses: oprypin/install-crystal@v1
with:
crystal: ${{matrix.crystal}}
- uses: actions/checkout@v2
- run: crystal spec
- run: crystal tool format --check src spec