Skip to content

Test Windows CI

Test Windows CI #223

Workflow file for this run

name: CI
on:
push:
pull_request:
schedule:
- cron: "0 3 * * 1" # Every monday at 3 AM
jobs:
test:
strategy:
fail-fast: false
matrix:
include:
- { os: ubuntu-latest, crystal: latest, allowed-failure: false }
- { os: ubuntu-latest, crystal: nightly, allowed-failure: false }
- { os: macos-latest, allowed-failure: false }
- { os: windows-latest, allowed-failure: true }
runs-on: ${{ matrix.os }}
steps:
- name: Install Crystal
uses: oprypin/install-crystal@v1
with:
crystal: ${{ matrix.crystal }}
- name: Download source
uses: actions/checkout@v2
- name: Install dependencies
run: shards install
env:
SHARDS_OPTS: --ignore-crystal-version
- name: Run specs
run: |
crystal spec
crystal spec --release --no-debug
continue-on-error: ${{ matrix.allowed-failure }}
- name: Check formatting
run: crystal tool format --check
check_ameba:
runs-on: ubuntu-latest
steps:
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
- name: Check out repository code
uses: actions/checkout@v3
- name: Crystal Ameba Linter
id: crystal-ameba
uses: crystal-ameba/github-action@v0.7.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}