use ameba github action

This commit is contained in:
Anton Maminov 2023-04-17 23:20:20 +03:00
parent e3be2d8d78
commit bbb21c1b6f
2 changed files with 12 additions and 6 deletions

View file

@ -40,5 +40,15 @@ jobs:
- name: Check formatting
run: crystal tool format --check
- name: Run ameba linter
run: bin/ameba
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 }}

View file

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