Fixes compilation error #105
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Specs | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
check_format: | |
strategy: | |
fail-fast: false | |
runs-on: ubuntu-latest | |
continue-on-error: false | |
steps: | |
- name: Download source | |
uses: actions/checkout@v3 | |
- name: Install Crystal | |
uses: crystal-lang/install-crystal@v1 | |
- name: Install shards | |
run: shards install | |
- name: Format | |
run: crystal tool format --check | |
- name: Crystal Ameba Linter | |
id: crystal-ameba | |
uses: crystal-ameba/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
verify-chrome: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: ubuntu-latest | |
crystal: latest | |
- os: windows-latest | |
crystal: latest | |
- os: macos-latest | |
crystal: latest | |
runs-on: ${{ matrix.os }} | |
continue-on-error: false | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: crystal-lang/install-crystal@v1 | |
with: | |
crystal: ${{ matrix.crystal_version }} | |
- uses: browser-actions/setup-chrome@v1 | |
with: | |
chrome-version: stable | |
if: matrix.os == 'windows-latest' | |
- name: Install dependencies | |
run: shards install --ignore-crystal-version --skip-executables --skip-postinstall | |
- name: Run tests | |
run: crystal spec --tag "~chrome" | |
env: | |
SELENIUM_BROWSER: chrome |