Crystal CI #369
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: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
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 --ignore-crystal-version | |
- 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 --ignore-crystal-version | |
- 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 --ignore-crystal-version | |
- 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 --ignore-crystal-version | |
- name: Run tests | |
run: crystal spec |