From 891c7445953f7a50fdbcd6c9d2e5782c008eccf5 Mon Sep 17 00:00:00 2001 From: Alexander Baranov Date: Thu, 13 Jun 2024 19:18:53 +0400 Subject: [PATCH 1/2] pass openai secret --- .github/workflows/integration-tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 19f158e4..f7acde98 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -1,9 +1,7 @@ name: Integration tests on: - push: - branches: - - master + - push jobs: integration_tests: @@ -16,4 +14,6 @@ jobs: with: go-version: '1.21' - name: Run integration tests + env: + OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }} run: go test -v -tags=integration ./api_integration_test.go From 4a6e74031595e24300e14d13c54924e80309dfc5 Mon Sep 17 00:00:00 2001 From: Alexander Baranov Date: Thu, 13 Jun 2024 19:20:17 +0400 Subject: [PATCH 2/2] only run in master branch --- .github/workflows/integration-tests.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index f7acde98..7260b00b 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -1,7 +1,9 @@ name: Integration tests on: - - push + push: + branches: + - master jobs: integration_tests: