[main] fix: remove invalid secret condition in workflow
- Replace secrets condition with proper GitHub context condition - Secrets cannot be used directly in if conditions - Run integration tests only for push events or PRs from the same repo
This commit is contained in:
2
.github/workflows/pr-test.yml
vendored
2
.github/workflows/pr-test.yml
vendored
@ -85,7 +85,7 @@ jobs:
|
|||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Run integration tests
|
- name: Run integration tests
|
||||||
if: ${{ secrets.GITLAB_TOKEN_TEST }}
|
if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
run: |
|
run: |
|
||||||
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"
|
||||||
|
Reference in New Issue
Block a user