This commit is contained in:
Anton Maminov 2024-07-30 13:06:04 +03:00 committed by GitHub
commit 718ff86846
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 8 deletions

View file

@ -11,8 +11,11 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [ubuntu-latest, macos-latest] include:
crystal: [latest, nightly] - { 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 }} runs-on: ${{ matrix.os }}
steps: steps:
@ -33,9 +36,20 @@ jobs:
run: | run: |
crystal spec crystal spec
crystal spec --release --no-debug crystal spec --release --no-debug
continue-on-error: ${{ matrix.allowed-failure }}
- name: Check formatting - name: Check formatting
run: crystal tool format --check run: crystal tool format --check
- name: Run ameba linter check_ameba:
run: bin/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 }}

View file

@ -12,10 +12,6 @@ dependencies:
github: crystal-loot/exception_page github: crystal-loot/exception_page
version: ~> 0.4.1 version: ~> 0.4.1
development_dependencies:
ameba:
github: crystal-ameba/ameba
crystal: ">= 0.36.0" crystal: ">= 0.36.0"
license: MIT license: MIT