fix: GitHub Actions workflow syntax errors
- Remove unsupported default value syntax from secrets - Fix startup_failure error in PR validation workflow
This commit is contained in:
10
.github/workflows/pr-test.yml
vendored
10
.github/workflows/pr-test.yml
vendored
@ -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 }}
|
Reference in New Issue
Block a user