From d07e6ef8c228eff85f54398d7f2d91cc2838d544 Mon Sep 17 00:00:00 2001 From: Mike Hardy Date: Mon, 8 Apr 2024 21:58:17 -0500 Subject: [PATCH] test(ci): forward port from GITHUB_OUTPUT vs set-output should get rid of all the warnings associated with the set-output functionality going away in Github CI --- .github/workflows/linting.yml | 27 ++++++++++++++----------- .github/workflows/tests_e2e_android.yml | 7 +++---- .github/workflows/tests_e2e_ios.yml | 6 +++--- .github/workflows/tests_jest.yml | 9 +++++---- 4 files changed, 26 insertions(+), 23 deletions(-) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index b4a4cd434..4cc4b33d6 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -24,14 +24,15 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 18 - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + - name: Set workflow variables + id: workflow-variables + run: | + echo "yarn-cache=$(yarn cache dir)" >> $GITHUB_OUTPUT - uses: actions/cache@v4 name: Yarn Cache id: yarn-cache with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + path: ${{ steps.workflow-variables.outputs.yarn-cache }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }} restore-keys: | ${{ runner.os }}-yarn- @@ -57,14 +58,15 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 18 - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + - name: Set workflow variables + id: workflow-variables + run: | + echo "yarn-cache=$(yarn cache dir)" >> $GITHUB_OUTPUT - uses: actions/cache@v4 name: Yarn Cache id: yarn-cache with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + path: ${{ steps.workflow-variables.outputs.yarn-cache }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }} restore-keys: | ${{ runner.os }}-yarn- @@ -90,14 +92,15 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 18 - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + - name: Set workflow variables + id: workflow-variables + run: | + echo "yarn-cache=$(yarn cache dir)" >> $GITHUB_OUTPUT - uses: actions/cache@v4 name: Yarn Cache id: yarn-cache with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + path: ${{ steps.workflow-variables.outputs.yarn-cache }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }}-with-website restore-keys: | ${{ runner.os }}-yarn- diff --git a/.github/workflows/tests_e2e_android.yml b/.github/workflows/tests_e2e_android.yml index 07acd7680..6c0588de1 100644 --- a/.github/workflows/tests_e2e_android.yml +++ b/.github/workflows/tests_e2e_android.yml @@ -35,18 +35,17 @@ jobs: with: node-version: 18 - # Set path variables needed for caches - name: Set workflow variables id: workflow-variables run: | - echo "::set-output name=metro-cache::$HOME/.metro" - echo "::set-output name=yarn-cache-dir::$(yarn cache dir)" + echo "yarn-cache=$(yarn cache dir)" >> $GITHUB_OUTPUT + echo "metro-cache=$HOME/.metro" >> $GITHUB_OUTPUT - uses: actions/cache@v4 name: Yarn Cache id: yarn-cache with: - path: ${{ steps.workflow-variables.outputs.yarn-cache-dir }} + path: ${{ steps.workflow-variables.outputs.yarn-cache }} key: ${{ runner.os }}-yarn-v1-${{ hashFiles('**/package.json') }} restore-keys: ${{ runner.os }}-yarn-v1 diff --git a/.github/workflows/tests_e2e_ios.yml b/.github/workflows/tests_e2e_ios.yml index edb5e95c0..6f96b130c 100644 --- a/.github/workflows/tests_e2e_ios.yml +++ b/.github/workflows/tests_e2e_ios.yml @@ -47,14 +47,14 @@ jobs: - name: Set workflow variables id: workflow-variables run: | - echo "::set-output name=metro-cache::$HOME/.metro" - echo "::set-output name=yarn-cache-dir::$(yarn cache dir)" + echo "yarn-cache=$(yarn cache dir)" >> $GITHUB_OUTPUT + echo "metro-cache=$HOME/.metro" >> $GITHUB_OUTPUT - uses: actions/cache@v4 name: Yarn Cache id: yarn-cache with: - path: ${{ steps.workflow-variables.outputs.yarn-cache-dir }} + path: ${{ steps.workflow-variables.outputs.yarn-cache }} key: ${{ runner.os }}-yarn-v1-${{ hashFiles('**/package.json') }} restore-keys: ${{ runner.os }}-yarn-v1 diff --git a/.github/workflows/tests_jest.yml b/.github/workflows/tests_jest.yml index e69533c2b..f805aadbe 100644 --- a/.github/workflows/tests_jest.yml +++ b/.github/workflows/tests_jest.yml @@ -32,14 +32,15 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 18 - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + - name: Set workflow variables + id: workflow-variables + run: | + echo "yarn-cache=$(yarn cache dir)" >> $GITHUB_OUTPUT - uses: actions/cache@v4 name: Yarn Cache id: yarn-cache with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + path: ${{ steps.workflow-variables.outputs.yarn-cache }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }} restore-keys: | ${{ runner.os }}-yarn-