Skip to content

Separate nightly CI runs into a separate workflow. #997

Separate nightly CI runs into a separate workflow.

Separate nightly CI runs into a separate workflow. #997

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
types: [opened, synchronize, reopened]
release:
types: [published]
workflow_dispatch:
jobs:
test:
name: Test
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
crystal: latest

Check failure on line 19 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 19, Col: 18): Unexpected value 'latest'
runs-on: ${{ matrix.os }}
steps:
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
with:
crystal: ${{ matrix.crystal }}
- name: Download source
uses: actions/checkout@v3
- name: Install dependencies
run: shards install
- name: Run specs
run: crystal spec --error-on-warnings --error-trace
- name: Build the binary
run: shards build --error-on-warnings --error-trace
- name: Run core specs (Firefox)
working-directory: ./core/tests
run: ../../bin/mint test -b firefox
- name: Run core specs (Google Chrome)
working-directory: ./core/tests
run: ../../bin/mint test -b chrome
- name: Check formatting (Mint)
working-directory: ./core
run: ../bin/mint format --check
- name: Check formatting (Mint tests)
working-directory: ./core/tests
run: ../../bin/mint format --check
- name: Check formatting (Crystal)
run: crystal tool format --check
- name: Run ameba
run: bin/ameba