Crystal CI #405
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: Crystal CI | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
check_format: | |
runs-on: ubuntu-latest | |
container: | |
image: crystallang/crystal | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: shards install | |
- name: Check format | |
run: crystal tool format --check | |
check_ameba: | |
runs-on: ubuntu-latest | |
container: | |
image: crystallang/crystal | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: shards install | |
- name: Check ameba | |
run: ./bin/ameba | |
test_latest: | |
runs-on: ubuntu-latest | |
container: | |
image: crystallang/crystal | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: shards install | |
- name: Run tests | |
run: crystal spec | |
test_nightly: | |
runs-on: ubuntu-latest | |
container: | |
image: crystallang/crystal:nightly | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: shards install | |
- name: Run tests | |
run: crystal spec |