fix: Lint issues #35
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| name: Go ${{ matrix.go }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| go: | |
| - '1.23' | |
| - '1.24' | |
| - '1.25' | |
| fail-fast: false | |
| timeout-minutes: 10 | |
| env: | |
| POSTGES_DB: pg_dba_test | |
| POSTGES_HOST: "127.0.0.1" | |
| POSTGRES_USER: postgres | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ matrix.go }} | |
| - name: Start Postgres # TODO: Come back and get rid of the sleep with a health check | |
| run: | | |
| docker compose up -d | |
| sleep 15 | |
| - name: Seed DB | |
| env: | |
| PGHOST: "127.0.0.1" | |
| PGUSER: postgres | |
| run: | | |
| psql -c 'create database pg_dba_test;' | |
| cat test-schema.sql | psql > /dev/null | |
| - name: Run Tests | |
| run: make test | |
| - name: Upload Coverage | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: ./coverage.txt,./integration-coverage.txt | |
| docker-build: | |
| name: Docker Build | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - run: docker build -t pg-dba . | |
| docs: | |
| name: Test Documentation Build | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - run: make docs | |
| working-directory: docs |