|
12 | 12 | # See the License for the specific language governing permissions and
|
13 | 13 | # limitations under the License.
|
14 | 14 |
|
| 15 | + |
15 | 16 | name: iam-deny
|
16 | 17 | on:
|
17 | 18 | push:
|
@@ -43,47 +44,47 @@ jobs:
|
43 | 44 | run:
|
44 | 45 | working-directory: 'iam/deny'
|
45 | 46 | steps:
|
46 |
| - |
47 |
| - with: |
48 |
| - ref: ${{github.event.pull_request.head.sha}} |
49 |
| - - uses: 'google-github-actions/[email protected]' |
50 |
| - with: |
51 |
| - workload_identity_provider: 'projects/949737848314/locations/global/workloadIdentityPools/iam-deny-test-pool/providers/iam-deny-test-provider' |
52 |
| - service_account: '[email protected]' |
53 |
| - create_credentials_file: 'true' |
54 |
| - access_token_lifetime: 600s |
55 |
| - |
56 |
| - with: |
| 47 | + |
| 48 | + with: |
| 49 | + ref: ${{github.event.pull_request.head.sha}} |
| 50 | + - uses: 'google-github-actions/[email protected]' |
| 51 | + with: |
| 52 | + workload_identity_provider: 'projects/949737848314/locations/global/workloadIdentityPools/iam-deny-test-pool/providers/iam-deny-test-provider' |
| 53 | + service_account: '[email protected]' |
| 54 | + create_credentials_file: 'true' |
| 55 | + access_token_lifetime: 600s |
| 56 | + |
| 57 | + with: |
57 | 58 | node-version: 16
|
58 |
| - - name: Get npm cache directory |
59 |
| - id: npm-cache-dir |
60 |
| - shell: bash |
61 |
| - run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT} |
62 |
| - - uses: actions/cache@v4 |
63 |
| - id: npm-cache |
64 |
| - with: |
| 59 | + - name: Get npm cache directory |
| 60 | + id: npm-cache-dir |
| 61 | + shell: bash |
| 62 | + run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT} |
| 63 | + - uses: actions/cache@v4 |
| 64 | + id: npm-cache |
| 65 | + with: |
65 | 66 | path: ${{ steps.npm-cache-dir.outputs.dir }}
|
66 | 67 | key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
67 | 68 | restore-keys: "${{ runner.os }}-node- \n"
|
68 |
| - - name: install repo dependencies |
69 |
| - run: npm install |
70 |
| - working-directory: . |
71 |
| - - name: install directory dependencies |
72 |
| - run: npm install |
73 |
| - - run: npm run build --if-present |
74 |
| - - name: set env vars for scheduled run |
75 |
| - if: github.event.action == 'schedule' |
76 |
| - run: | |
| 69 | + - name: install repo dependencies |
| 70 | + run: npm install |
| 71 | + working-directory: . |
| 72 | + - name: install directory dependencies |
| 73 | + run: npm install |
| 74 | + - run: npm run build --if-present |
| 75 | + - name: set env vars for scheduled run |
| 76 | + if: github.event.action == 'schedule' |
| 77 | + run: | |
77 | 78 | echo "MOCHA_REPORTER_SUITENAME=iam-deny" >> $GITHUB_ENV
|
78 | 79 | echo "MOCHA_REPORTER_OUTPUT=${{github.run_id}}_sponge_log.xml" >> $GITHUB_ENV
|
79 | 80 | echo "MOCHA_REPORTER=xunit" >> $GITHUB_ENV
|
80 |
| - - run: npm test |
81 |
| - - name: upload test results for FlakyBot workflow |
82 |
| - if: github.event.action == 'schedule' && always() |
83 |
| - uses: actions/upload-artifact@v3 |
84 |
| - env: |
| 81 | + - run: npm test |
| 82 | + - name: upload test results for FlakyBot workflow |
| 83 | + if: github.event.action == 'schedule' && always() |
| 84 | + uses: actions/upload-artifact@v3 |
| 85 | + env: |
85 | 86 | MOCHA_REPORTER_OUTPUT: "${{github.run_id}}_sponge_log.xml"
|
86 |
| - with: |
| 87 | + with: |
87 | 88 | name: test-results
|
88 | 89 | path: iam/deny/${{ env.MOCHA_REPORTER_OUTPUT }}
|
89 | 90 | retention-days: 1
|
|
0 commit comments