Skip to content

CI

CI #251

Workflow file for this run

name: CI
on:
push:
branches: ["master"]
pull_request:
branches: ["*"]
schedule:
- cron: "0 21 * * *"
jobs:
quality:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Crystal
uses: oprypin/install-crystal@v1
with:
crystal: 1.10.1
- name: Check code formatting
run: crystal tool format --check
- name: Crystal Ameba Linter
run: docker run -t -v $PWD/src:/src veelenga/ameba:v0.14.1
- name: Install dependencies
run: shards install
- name: Run tests
run: crystal spec