diff --git a/.github/workflows/crystal.yml b/.github/workflows/crystal.yml new file mode 100644 index 0000000..15fea2d --- /dev/null +++ b/.github/workflows/crystal.yml @@ -0,0 +1,22 @@ +name: Crystal CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + container: + image: crystallang/crystal + + steps: + - uses: actions/checkout@v1 + - name: Install dependencies + run: shards install + - name: Code formatting + run: crystal tool format --check + - name: Code inspection with ameba + run: bin/ameba src + - name: Run specs + run: crystal spec -v