Skip to content

Commit 415c721

Browse files
authored
Redo check to run integration test (#131)
- Enable manual execution of integration tests for development quality checks. - Restrict scheduled tests to run only on clearlydefined/operations.
1 parent 65c65a0 commit 415c721

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/integration-test.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,14 @@ jobs:
4747
run: npm test
4848

4949
- name: Check whether to run integration tests
50-
env:
51-
GITHUB_TOKEN: ${{ secrets.CLEARLYDEFINED_GITHUB_PAT }}
50+
if: ${{ github.event_name == 'schedule' && github.repository != 'clearlydefined/operations' }}
5251
run: |
53-
HAS_ADMIN=$(curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/${{ github.repository }} | jq '.permissions.admin')
54-
if [ "$HAS_ADMIN" = "true" ]; then
55-
echo "The token has admin rights."
56-
else
57-
echo "The token does NOT have admin rights."
58-
exit 1
59-
fi
60-
52+
echo "Repository: ${{ github.repository }}, Event: ${{ github.event_name }}"
53+
echo "Running scheduled integration tests only on clearlydefined/operations."
54+
exit 1
55+
6156
- name: Trigger harvest and verify completion if required
62-
if: github.event.inputs.doHarvest == 'true' || github.event.inputs.doHarvest == null || matrix.dynamicCoordinates == 'true'
57+
if: ${{ github.event.inputs.doHarvest == 'true' || github.event.inputs.doHarvest == null || matrix.dynamicCoordinates == 'true' }}
6358
run: DYNAMIC_COORDINATES=${{ matrix.dynamicCoordinates }} npm run e2e-test-harvest
6459

6560
- name: Verify service functions

0 commit comments

Comments
 (0)