diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 7dfe3ea564..3c4de62425 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -42,12 +42,12 @@ jobs: access_token_lifetime: 600s - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 with: - node-version: 16 + node-version: 20 - name: Get npm cache directory id: npm-cache-dir shell: bash run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT} - - uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4 + - uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 id: npm-cache with: path: ${{ steps.npm-cache-dir.outputs.dir }} @@ -58,10 +58,14 @@ jobs: run: echo "MOCHA_REPORTER_OUTPUT=${{github.run_id}}_sponge_log.xml" >> $GITHUB_ENV - name: set testing env vars for scheduled run if: github.event.action == 'schedule' + env: + SUITE_NAME: ${{ inputs.name }} run: | - echo "MOCHA_REPORTER_SUITENAME=${{ inputs.name }}" >> $GITHUB_ENV + echo "MOCHA_REPORTER_SUITENAME=${SUITE_NAME}" >> $GITHUB_ENV echo "MOCHA_REPORTER=xunit" >> $GITHUB_ENV - name: Run Tests - run: make test dir=${{ inputs.path }} env: GOOGLE_SAMPLES_PROJECT: "long-door-651" + SAMPLE_PATH: ${{ inputs.path }} + run: make test dir="${SAMPLE_PATH}" +