mechanize.cr/.github/workflows/crystal.yml

38 lines
899 B
YAML
Raw Normal View History

2021-08-14 11:30:04 +02:00
name: Crystal CI
on:
push:
pull_request:
jobs:
2021-08-17 18:30:14 +02:00
check_format:
runs-on: ubuntu-latest
steps:
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
- name: Check out repository code
uses: actions/checkout@v2
- name: Install dependencies
run: shards install
- name: Check format
run: crystal tool format --check
2021-08-14 11:30:04 +02:00
test:
strategy:
fail-fast: false
matrix:
include:
- {os: ubuntu-latest, crystal: latest}
- {os: ubuntu-latest, crystal: nightly}
- {os: macos-latest}
runs-on: ${{ matrix.os }}
2021-08-14 11:30:04 +02:00
steps:
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
- name: Check out repository code
uses: actions/checkout@v2
- name: Install dependencies
run: shards install
- name: Run tests
run: crystal spec