Skip to content

feat: support for generating testcontainers-go tests for DB drivers #12

feat: support for generating testcontainers-go tests for DB drivers

feat: support for generating testcontainers-go tests for DB drivers #12

name: Linting Generated Blueprints Advanced
on:
pull_request: {}
workflow_dispatch: {}
jobs:
framework_matrix:
strategy:
matrix:
framework: [chi, gin, fiber, gorilla/mux, httprouter, standard-library, echo]
driver: [postgres]
git: [commit]
advanced: [htmx, githubaction, websocket, tailwind]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22.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: build templates
run: script -q /dev/null -c "go run main.go create -n ${{ matrix.framework }} -f ${{ matrix.framework}} -d ${{ matrix.driver }} -g ${{ matrix.git}} --advanced --feature ${{ matrix.advanced }}" /dev/null
- if: ${{ matrix.advanced == 'htmx' || matrix.advanced == 'tailwind' }}
name: Install Templ & gen templates
run: |
go install github.com/a-h/templ/cmd/templ@latest
/home/runner/go/bin/templ generate -path ${{ matrix.framework }}
- name: golangci-lint
run: |
cd ${{ matrix.framework }}
golangci-lint run
- name: remove templates
run: rm -rf ${{ matrix.framework }}