From 6d6110c78bcef3987799c98a9fd48241236e7cf7 Mon Sep 17 00:00:00 2001 From: simple Date: Thu, 29 May 2025 23:38:20 +0900 Subject: [PATCH] fix: GitHub Actions workflow syntax errors - Remove unsupported default value syntax from secrets - Fix startup_failure error in PR validation workflow --- .github/workflows/pr-test.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr-test.yml b/.github/workflows/pr-test.yml index 9073ddc..a110df8 100644 --- a/.github/workflows/pr-test.yml +++ b/.github/workflows/pr-test.yml @@ -32,7 +32,7 @@ jobs: - name: Run tests run: npm test env: - GITLAB_API_URL: ${{ secrets.GITLAB_API_URL || 'https://gitlab.com' }} + GITLAB_API_URL: ${{ secrets.GITLAB_API_URL }} GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN_TEST }} - name: Type check @@ -60,8 +60,8 @@ jobs: exit 1 fi env: - GITLAB_API_URL: ${{ secrets.GITLAB_API_URL || 'https://gitlab.com' }} - GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN_TEST || 'dummy-token-for-test' }} + GITLAB_API_URL: ${{ secrets.GITLAB_API_URL }} + GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN_TEST }} integration-test: runs-on: ubuntu-latest @@ -90,7 +90,7 @@ jobs: echo "Running integration tests with real GitLab API..." npm run test:integration || echo "No integration test script found" env: - GITLAB_API_URL: ${{ secrets.GITLAB_API_URL || 'https://gitlab.com' }} + GITLAB_API_URL: ${{ secrets.GITLAB_API_URL }} GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN_TEST }} PROJECT_ID: ${{ secrets.TEST_PROJECT_ID }} @@ -160,6 +160,6 @@ jobs: - name: Run tests run: npm test env: - GITLAB_API_URL: ${{ secrets.GITLAB_API_URL || 'https://gitlab.com' }} + GITLAB_API_URL: ${{ secrets.GITLAB_API_URL }} GITLAB_TOKEN_TEST: ${{ secrets.GITLAB_TOKEN_TEST }} TEST_PROJECT_ID: ${{ secrets.TEST_PROJECT_ID }} \ No newline at end of file