From db2fd0455ea1c0106a34b7a6ffa475b47a9587ad Mon Sep 17 00:00:00 2001 From: josesahad Date: Sun, 2 Nov 2025 19:02:33 +0100 Subject: [PATCH 1/4] Add daily execution of all tests --- .github/workflows/test.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 056cba54..c3eeea15 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,6 +5,9 @@ on: push: branches: - main + schedule: + - cron: '0 8 * * *' + workflow_dispatch: # still allow manual triggering jobs: test: @@ -50,7 +53,26 @@ jobs: run: go vet ./... - name: Test - run: go test -race -coverprofile=coverage.out -coverpkg=./... ./... + env: + TIGER_PUBLIC_KEY_INTEGRATION: ${{ secrets.TIGER_PUBLIC_KEY_INTEGRATION }} + TIGER_SECRET_KEY_INTEGRATION: ${{ secrets.TIGER_SECRET_KEY_INTEGRATION }} + TIGER_PROJECT_ID_INTEGRATION: ${{ secrets.TIGER_PROJECT_ID_INTEGRATION }} + run: | + # Run all tests with race detection and coverage + # Integration tests will skip automatically if secrets are not set + go test -race -coverprofile=coverage.out -coverpkg=./... ./... + + # Run integration tests via script if secrets are available + if [ -n "$TIGER_PUBLIC_KEY_INTEGRATION" ] && [ -n "$TIGER_SECRET_KEY_INTEGRATION" ] && [ -n "$TIGER_PROJECT_ID_INTEGRATION" ]; then + # Create .env file from secrets so the script can use it + cat > .env << EOF + TIGER_PUBLIC_KEY_INTEGRATION=$TIGER_PUBLIC_KEY_INTEGRATION + TIGER_SECRET_KEY_INTEGRATION=$TIGER_SECRET_KEY_INTEGRATION + TIGER_PROJECT_ID_INTEGRATION=$TIGER_PROJECT_ID_INTEGRATION + EOF + chmod +x scripts/test-integration.sh + scripts/test-integration.sh -v + fi - name: Generate coverage report run: go tool cover -html=coverage.out -o=coverage.html From d1f68aae0655b9a5df0c94f11480c9a3d7f15b04 Mon Sep 17 00:00:00 2001 From: Nathan Cochran Date: Mon, 3 Nov 2025 17:18:36 -0500 Subject: [PATCH 2/4] Remove unnecessary steps --- .github/workflows/test.yml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c3eeea15..45a14a4c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -61,18 +61,6 @@ jobs: # Run all tests with race detection and coverage # Integration tests will skip automatically if secrets are not set go test -race -coverprofile=coverage.out -coverpkg=./... ./... - - # Run integration tests via script if secrets are available - if [ -n "$TIGER_PUBLIC_KEY_INTEGRATION" ] && [ -n "$TIGER_SECRET_KEY_INTEGRATION" ] && [ -n "$TIGER_PROJECT_ID_INTEGRATION" ]; then - # Create .env file from secrets so the script can use it - cat > .env << EOF - TIGER_PUBLIC_KEY_INTEGRATION=$TIGER_PUBLIC_KEY_INTEGRATION - TIGER_SECRET_KEY_INTEGRATION=$TIGER_SECRET_KEY_INTEGRATION - TIGER_PROJECT_ID_INTEGRATION=$TIGER_PROJECT_ID_INTEGRATION - EOF - chmod +x scripts/test-integration.sh - scripts/test-integration.sh -v - fi - name: Generate coverage report run: go tool cover -html=coverage.out -o=coverage.html From 20e4480607683024833b7b1ad9685274737ec2ee Mon Sep 17 00:00:00 2001 From: Nathan Cochran Date: Thu, 13 Nov 2025 17:44:45 -0500 Subject: [PATCH 3/4] Remove unnecessary comment --- .github/workflows/test.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 45a14a4c..e4ed13ab 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -57,10 +57,7 @@ jobs: TIGER_PUBLIC_KEY_INTEGRATION: ${{ secrets.TIGER_PUBLIC_KEY_INTEGRATION }} TIGER_SECRET_KEY_INTEGRATION: ${{ secrets.TIGER_SECRET_KEY_INTEGRATION }} TIGER_PROJECT_ID_INTEGRATION: ${{ secrets.TIGER_PROJECT_ID_INTEGRATION }} - run: | - # Run all tests with race detection and coverage - # Integration tests will skip automatically if secrets are not set - go test -race -coverprofile=coverage.out -coverpkg=./... ./... + run: go test -race -coverprofile=coverage.out -coverpkg=./... ./... - name: Generate coverage report run: go tool cover -html=coverage.out -o=coverage.html From be61c9fa409a96eb8965e9c3d658a23337e8aefe Mon Sep 17 00:00:00 2001 From: Nathan Cochran Date: Tue, 6 Jan 2026 11:11:08 -0500 Subject: [PATCH 4/4] Remove TIGER_PROJECT_ID_INTEGRATION from CI workflow (no longer needed) --- .github/workflows/test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e4ed13ab..9d7fdd1a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -56,7 +56,6 @@ jobs: env: TIGER_PUBLIC_KEY_INTEGRATION: ${{ secrets.TIGER_PUBLIC_KEY_INTEGRATION }} TIGER_SECRET_KEY_INTEGRATION: ${{ secrets.TIGER_SECRET_KEY_INTEGRATION }} - TIGER_PROJECT_ID_INTEGRATION: ${{ secrets.TIGER_PROJECT_ID_INTEGRATION }} run: go test -race -coverprofile=coverage.out -coverpkg=./... ./... - name: Generate coverage report