Beds 536/port v1 changes #1087
This file contains 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: Backend-Integration-Test | |
on: | |
push: | |
paths: | |
- 'backend/**' | |
branches: | |
- main | |
- staging | |
pull_request: | |
paths: | |
- 'backend/**' | |
branches: | |
- '*' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
pull-requests: read | |
checks: write | |
jobs: | |
build: | |
name: integration-test | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'backend/go.mod' | |
cache-dependency-path: 'backend/go.sum' | |
- name: Test with the Go CLI | |
working-directory: backend | |
run: | |
go install github.com/swaggo/swag/cmd/swag@latest && swag init --ot json -o ./pkg/api/docs -d ./pkg/api/ -g ./handlers/public.go | |
go test -failfast ./pkg/api/... -config "${{ secrets.CI_CONFIG_PATH }}" | |