Skip to content

Modify github workflow #1

Modify github workflow

Modify github workflow #1

Workflow file for this run

name: Linters
on:
push:
branches:
- master
pull_request:
branches:
- "*"
jobs:
linters:
name: Linters
runs-on: ubuntu-latest
steps:
- name: Download source
uses: actions/checkout@v3
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
- name: Cache shards
uses: actions/cache@v2
with:
path: lib
key: ${{ runner.os }}-shards-${{ hashFiles('**/shard.lock') }}
restore-keys: ${{ runner.os }}-shards-
- name: Install shards
run: shards update
- name: Run linter
run: bin/ameba