Skip to content

Commit

Permalink
ci: linting on generated code
Browse files Browse the repository at this point in the history
resolve Melkeydev#39
  • Loading branch information
mimatache committed Nov 9, 2023
1 parent f2f682b commit 300d051
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/generate-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Linting Generated Blueprints

on:
pull_request: {}

jobs:
framework_matrix:
strategy:
matrix:
framework: [chi, gin, fiber, gorilla/mux, httprouter, standard-library, echo]
goVersion: [1.20]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.20
- name: build templates
run: go run main.go create -n ${{ matrix.framework }} -f ${{ matrix.framework}}

- name: golangci-lint
working-directory: ${{ matrix.framework }}
run: |
go install github.com/golangci/golangci-lint/cmd/[email protected]
golangci-lint run --timeout 5m

0 comments on commit 300d051

Please sign in to comment.