Skip to content

BEDS-1186 / fix integration tests pipeline run #1260

BEDS-1186 / fix integration tests pipeline run

BEDS-1186 / fix integration tests pipeline run #1260

name: Backend-Integration-Test
on:
push:
paths:
- 'backend/**'
branches:
- main
- staging
pull_request:
paths:
- 'backend/**'
branches:
- '*'
workflow_dispatch:
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@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'backend/go.mod'
cache-dependency-path: 'backend/go.sum'
cache: true
- name: Test with the Go CLI
working-directory: backend
env:
CLICKHOUSE_READER_DB_SSL: true
CLICKHOUSE_WRITER_DB_SSL: true
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 -tags=integration -failfast ./pkg/api/... -config "${{ secrets.CI_CONFIG_PATH }}"