Use an enum for properties flags instead of constants #83
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: CI | |
on: [push] | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
container: 84codes/crystal:latest-ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Checkout ameba | |
uses: actions/checkout@v3 | |
with: | |
repository: crystal-ameba/ameba | |
path: ameba | |
- name: Compile ameba | |
run: make -C ameba | |
- name: Lint | |
run: ameba/bin/ameba src | |
spec: | |
name: Spec | |
runs-on: ubuntu-latest | |
container: 84codes/crystal:latest-ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Shards install | |
run: shards install | |
- name: Spec | |
run: crystal spec --order random | |
format: | |
name: Formatting | |
runs-on: ubuntu-latest | |
container: 84codes/crystal:latest-ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Format check | |
run: crystal tool format --check |