Skip to content

Cli refactor

Cli refactor #159

name: Linting Generated Blueprints Advanced
on:
pull_request: {}
workflow_dispatch: {}
jobs:
blueprint_matrix:
strategy:
matrix:
backend: [chi, gin, fiber, gorilla/mux, standard-library, echo]
driver: [postgres]
git: [commit]
advanced: [githubaction, websocket, docker]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.23.x'
- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/cmd/[email protected]
- name: Commit report
run: |
git config --global user.name 'testname'
git config --global user.email '[email protected]'
- name: Set dir variable
id: set-project-directory
run: echo "PROJECT_DIRECTORY=${{ matrix.backend }}" | sed 's/\//-/g' >> $GITHUB_ENV
- name: build templates
run: script -q /dev/null -c "go run main.go create -n ${{ env.PROJECT_DIRECTORY }} -b ${{ matrix.backend}} -d ${{ matrix.driver }} -g ${{ matrix.git}} -a --feature ${{ matrix.advanced }}"
- name: golangci-lint
run: |
cd ${{ env.PROJECT_DIRECTORY }}
golangci-lint run
- name: remove templates
run: rm -rf ${{ env.PROJECT_DIRECTORY }}