Skip to content

CI

CI #1871

Workflow file for this run

name: CI
on:
pull_request:
branches:
- 'master'
schedule:
- cron: '0 21 * * *'
jobs:
check_format:
runs-on: ubuntu-latest
container:
image: crystallang/crystal:latest-alpine
steps:
- uses: actions/checkout@v4
- name: Format
run: crystal tool format --check
coding_standards:
runs-on: ubuntu-latest
container:
image: crystallang/crystal:latest
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: shards install
- name: Ameba
run: ./bin/ameba
test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
crystal:
- latest
- nightly
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
with:
crystal: ${{ matrix.crystal }}
- name: Build
run: shards build --production
- name: Specs
run: crystal spec --order=random --error-on-warnings