Skip to content

Crystal CI

Crystal CI #392

Workflow file for this run

name: Crystal CI
on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
check_format:
runs-on: ubuntu-latest
container:
image: crystallang/crystal
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: shards install
- name: Check format
run: crystal tool format --check
check_ameba:
runs-on: ubuntu-latest
container:
image: crystallang/crystal
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: shards install
- name: Check ameba
run: ./bin/ameba
test_latest:
runs-on: ubuntu-latest
container:
image: crystallang/crystal
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: shards install
- name: Run tests
run: crystal spec
test_nightly:
runs-on: ubuntu-latest
container:
image: crystallang/crystal:nightly
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: shards install
- name: Run tests
run: crystal spec