From 1338c6e97066ae7af5cf7a88b5072ea1e1025320 Mon Sep 17 00:00:00 2001 From: Suzanne Vogt Date: Fri, 2 Dec 2022 14:56:17 -0500 Subject: [PATCH] Fabrica-sw-update: upgrade pull_request.yml --- .github/workflows/pull_request.yml | 33 ++++++++++++++++-------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 7d33b6dcc..2d8beb311 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -11,18 +11,21 @@ jobs: strategy: fail-fast: false steps: - - name: Branch name - run: echo running on branch ${GITHUB_REF##*/} - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: '14' + - name: Get branch name + id: branch-name + run: echo "branch=${{github.ref_name}}" + run: echo "release=${{github.event.release.tag_name}}" + - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "name=dir::$(yarn cache dir)" >> $GITHUB_OUTPUT - - uses: actions/cache@v2 + - uses: actions/cache@v3 id: cypress-cache with: path: | @@ -50,16 +53,16 @@ jobs: strategy: fail-fast: true steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: '14' - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "name=dir::$(yarn cache dir)" >> $GITHUB_OUTPUT - - uses: actions/cache@v2 + - uses: actions/cache@v3 id: cypress-cache with: path: | @@ -90,16 +93,16 @@ jobs: matrix: containers: [1, 2, 3, 4, 5] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: '14' - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "name=dir::$(yarn cache dir)" >> $GITHUB_OUTPUT - - uses: actions/cache@v2 + - uses: actions/cache@v3 id: cypress-cache with: path: | @@ -110,7 +113,7 @@ jobs: restore-keys: ${{ runner.os }}-yarn- - name: Download Test Build artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: test_build path: test_build/