Skip to content

Commit c2055a0

Browse files
authored
Make the integration test optional (tibdex#67)
1 parent 44d4a52 commit c2055a0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/test.yml

+8
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,22 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: 16
16+
cache: yarn
1317
- run: yarn install --frozen-lockfile
1418
- run: yarn run yarn-deduplicate --fail --strategy fewer
1519
- run: yarn run build
1620
- run: yarn run prettier --check
1721
- run: yarn run xo
22+
# Optional integration test of the action using a dedicated GitHub App.
1823
- id: generate_token
24+
if: ${{ vars.TEST_GITHUB_APP_ID != '' }}
1925
uses: ./
2026
with:
27+
# The only required permission is `Repository permissions > Metadata: Read-only`.
2128
app_id: ${{ vars.TEST_GITHUB_APP_ID }}
2229
private_key: ${{ secrets.TEST_GITHUB_APP_PRIVATE_KEY }}
2330
- run: node --eval "assert('${{ steps.generate_token.outputs.token }}'.length > 0);"
31+
if: ${{ steps.generate_token.outcome != 'skipped' }}

0 commit comments

Comments
 (0)