Skip to content

Refactor to Clean Architecture, add credential masking, SQL identifie… #151

Refactor to Clean Architecture, add credential masking, SQL identifie…

Refactor to Clean Architecture, add credential masking, SQL identifie… #151

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
docker:
timeout-minutes: 10
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run docker-compose
uses: hoverkraft-tech/compose-action@v2.0.1
with:
compose-file: "./docker-compose.yml"
- name: Run lint
run: docker compose exec -T app make lint
- name: Run unit tests
run: docker compose exec -T app make test-unit
- name: Run integration tests
run: docker compose exec -T app make test-integration
- name: Generate coverage report
run: docker compose exec -T app make test-coverage
- name: Create coverage badge
uses: ncruces/go-coverage-report@v0
with:
coverage-file: .reports/coverage.txt
reuse-go: true
if: github.event_name == 'push' && github.ref == 'refs/heads/main'