File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,22 @@ jobs:
10
10
runs-on : ubuntu-latest
11
11
steps :
12
12
- uses : actions/checkout@v3
13
+ - uses : actions/setup-node@v3
14
+ with :
15
+ node-version : 16
16
+ cache : yarn
13
17
- run : yarn install --frozen-lockfile
14
18
- run : yarn run yarn-deduplicate --fail --strategy fewer
15
19
- run : yarn run build
16
20
- run : yarn run prettier --check
17
21
- run : yarn run xo
22
+ # Optional integration test of the action using a dedicated GitHub App.
18
23
- id : generate_token
24
+ if : ${{ vars.TEST_GITHUB_APP_ID != '' }}
19
25
uses : ./
20
26
with :
27
+ # The only required permission is `Repository permissions > Metadata: Read-only`.
21
28
app_id : ${{ vars.TEST_GITHUB_APP_ID }}
22
29
private_key : ${{ secrets.TEST_GITHUB_APP_PRIVATE_KEY }}
23
30
- run : node --eval "assert('${{ steps.generate_token.outputs.token }}'.length > 0);"
31
+ if : ${{ steps.generate_token.outcome != 'skipped' }}
You can’t perform that action at this time.
0 commit comments