Update CI configuration. #36
Workflow file for this run
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: build | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
schedule: | |
- cron: '20 16 * * 0' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download source | |
uses: actions/checkout@v4 | |
- name: Crystal Ameba Linter | |
uses: crystal-ameba/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install Crystal | |
uses: oprypin/install-crystal@v1 | |
- name: Check formatting | |
run: crystal tool format --check | |
- name: Install shards | |
run: shards install | |
- name: Run tests | |
run: crystal spec -v |