Skip to content

Add tests and set up a CI workflow #3

Add tests and set up a CI workflow

Add tests and set up a CI workflow #3

Workflow file for this run

name: Crystal CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
crystal: [latest, nightly]
runs-on: ${{ matrix.os }}
steps:
- name: Install Crystal
uses: oprypin/install-crystal@v1
with:
crystal: ${{ matrix.crystal }}
- name: Download source
uses: actions/checkout@v4
- name: Check code formatting
run: crystal tool format --check
- name: Install dependencies
run: shards install
- name: Lint with Ameba
run: bin/ameba