[main] fix: GitHub Actions workflow syntax errors

- Remove unsupported default value syntax (|| operator) from secrets
- Fix startup_failure error in PR validation workflow
- GitHub Actions doesn't support default values in secret expressions
This commit is contained in:
simple
2025-05-29 23:43:25 +09:00
parent 5b35bc163c
commit 720cd7a445

View File

@ -32,7 +32,7 @@ jobs:
- name: Run tests - name: Run tests
run: npm test run: npm test
env: env:
GITLAB_API_URL: ${{ secrets.GITLAB_API_URL || 'https://gitlab.com' }} GITLAB_API_URL: ${{ secrets.GITLAB_API_URL }}
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN_TEST }} GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN_TEST }}
- name: Type check - name: Type check
@ -60,8 +60,8 @@ jobs:
exit 1 exit 1
fi fi
env: env:
GITLAB_API_URL: ${{ secrets.GITLAB_API_URL || 'https://gitlab.com' }} GITLAB_API_URL: ${{ secrets.GITLAB_API_URL }}
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN_TEST || 'dummy-token-for-test' }} GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN_TEST }}
integration-test: integration-test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -90,7 +90,7 @@ jobs:
echo "Running integration tests with real GitLab API..." echo "Running integration tests with real GitLab API..."
npm run test:integration || echo "No integration test script found" npm run test:integration || echo "No integration test script found"
env: env:
GITLAB_API_URL: ${{ secrets.GITLAB_API_URL || 'https://gitlab.com' }} GITLAB_API_URL: ${{ secrets.GITLAB_API_URL }}
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN_TEST }} GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN_TEST }}
PROJECT_ID: ${{ secrets.TEST_PROJECT_ID }} PROJECT_ID: ${{ secrets.TEST_PROJECT_ID }}
@ -160,6 +160,6 @@ jobs:
- name: Run tests - name: Run tests
run: npm test run: npm test
env: 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 }} GITLAB_TOKEN_TEST: ${{ secrets.GITLAB_TOKEN_TEST }}
TEST_PROJECT_ID: ${{ secrets.TEST_PROJECT_ID }} TEST_PROJECT_ID: ${{ secrets.TEST_PROJECT_ID }}