From 79969c52410bf735dd44687f9ad27b7eec7bbee1 Mon Sep 17 00:00:00 2001 From: Jennifer Davis Date: Wed, 21 Aug 2024 19:51:42 -0700 Subject: [PATCH] fix: repair yaml indentation --- .github/workflows/iam-deny.yaml | 67 +++++++++++++++++---------------- 1 file changed, 34 insertions(+), 33 deletions(-) diff --git a/.github/workflows/iam-deny.yaml b/.github/workflows/iam-deny.yaml index 67adca2c4a..4bb5afa15e 100644 --- a/.github/workflows/iam-deny.yaml +++ b/.github/workflows/iam-deny.yaml @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. + name: iam-deny on: push: @@ -43,47 +44,47 @@ jobs: run: working-directory: 'iam/deny' steps: - - uses: actions/checkout@v4.1.0 - with: - ref: ${{github.event.pull_request.head.sha}} - - uses: 'google-github-actions/auth@v2.1.3' - with: - workload_identity_provider: 'projects/949737848314/locations/global/workloadIdentityPools/iam-deny-test-pool/providers/iam-deny-test-provider' - service_account: 'kokoro-ca@isakovf-iam-deny-samples.iam.gserviceaccount.com' - create_credentials_file: 'true' - access_token_lifetime: 600s - - uses: actions/setup-node@v4.0.0 - with: + - uses: actions/checkout@v4.1.0 + with: + ref: ${{github.event.pull_request.head.sha}} + - uses: 'google-github-actions/auth@v2.1.3' + with: + workload_identity_provider: 'projects/949737848314/locations/global/workloadIdentityPools/iam-deny-test-pool/providers/iam-deny-test-provider' + service_account: 'kokoro-ca@isakovf-iam-deny-samples.iam.gserviceaccount.com' + create_credentials_file: 'true' + access_token_lifetime: 600s + - uses: actions/setup-node@v4.0.0 + with: node-version: 16 - - name: Get npm cache directory - id: npm-cache-dir - shell: bash - run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT} - - uses: actions/cache@v4 - id: npm-cache - with: + - name: Get npm cache directory + id: npm-cache-dir + shell: bash + run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT} + - uses: actions/cache@v4 + id: npm-cache + with: path: ${{ steps.npm-cache-dir.outputs.dir }} key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} restore-keys: "${{ runner.os }}-node- \n" - - name: install repo dependencies - run: npm install - working-directory: . - - name: install directory dependencies - run: npm install - - run: npm run build --if-present - - name: set env vars for scheduled run - if: github.event.action == 'schedule' - run: | + - name: install repo dependencies + run: npm install + working-directory: . + - name: install directory dependencies + run: npm install + - run: npm run build --if-present + - name: set env vars for scheduled run + if: github.event.action == 'schedule' + run: | echo "MOCHA_REPORTER_SUITENAME=iam-deny" >> $GITHUB_ENV echo "MOCHA_REPORTER_OUTPUT=${{github.run_id}}_sponge_log.xml" >> $GITHUB_ENV echo "MOCHA_REPORTER=xunit" >> $GITHUB_ENV - - run: npm test - - name: upload test results for FlakyBot workflow - if: github.event.action == 'schedule' && always() - uses: actions/upload-artifact@v3 - env: + - run: npm test + - name: upload test results for FlakyBot workflow + if: github.event.action == 'schedule' && always() + uses: actions/upload-artifact@v3 + env: MOCHA_REPORTER_OUTPUT: "${{github.run_id}}_sponge_log.xml" - with: + with: name: test-results path: iam/deny/${{ env.MOCHA_REPORTER_OUTPUT }} retention-days: 1