Crystal CI #63
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 23 * * 6" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Crystal | |
uses: crystal-lang/install-crystal@v1 | |
- name: Install dependencies | |
run: shards install | |
- name: Run general tests | |
run: crystal spec spec/json spec/mass_spec | |
- name: Run test for Amber | |
run: crystal spec spec/frameworks/amber_spec.cr | |
- name: Run test for Kemal | |
run: crystal spec spec/frameworks/kemal_spec.cr | |
- name: Check formatting | |
run: crystal tool format --check | |
- name: Lint | |
run: bin/ameba |