Skip to content

build(ci): also check for code simplification #17

build(ci): also check for code simplification

build(ci): also check for code simplification #17

Workflow file for this run

name: Lint
on:
push:
branches:
- master
pull_request:
jobs:
py-black:
name: Python Formatter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
go-fmt:
name: Go Formatter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Run go fmt
run: |
NON_COMPLIANT_FILES=$(gofmt -s -l $(find . -type f -name '*.go'| grep -v "/.template/"))

Check failure on line 28 in .github/workflows/linter.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/linter.yml

Invalid workflow file

You have an error in your yaml syntax on line 28
if [ -n "$NON_COMPLIANT_FILES" ]; then
echo "The following files are not formatted correctly:"
echo "$NON_COMPLIANT_FILES"
exit 1
fi