add code formatting to autogen action #304
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: Specs | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
crystal-version: [1.10.1] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: oprypin/install-crystal@v1 | |
with: | |
crystal: ${{ matrix.crystal-version }} | |
- name: Install dependencies | |
run: shards install --ignore-crystal-version | |
- name: Format code | |
run: crystal tool format && git diff --exit-code | |
- name: Run tests | |
run: crystal spec |