Skip to content

Commit

Permalink
Merge pull request #2 from CodingItWrong/update-actions
Browse files Browse the repository at this point in the history
Update GH actions in this project and generated projects
  • Loading branch information
CodingItWrong authored May 17, 2024
2 parents 012d078 + bde108f commit db2a2fe
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 46 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ jobs:
name: Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down
80 changes: 40 additions & 40 deletions __snapshots__/gitHubActions.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jobs:
test:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16
cache: \\"yarn\\"
- name: Cache Pods dependencies
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ios/Pods
key: \${{ runner.OS }}-pods-cache-\${{ hashFiles('**/ios/Podfile.lock') }}
Expand Down Expand Up @@ -65,15 +65,15 @@ jobs:
test:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
cache: \\"yarn\\"
- name: Cache Pods dependencies
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ios/Pods
key: \${{ runner.OS }}-pods-cache-\${{ hashFiles('**/ios/Podfile.lock') }}
Expand Down Expand Up @@ -118,13 +118,13 @@ jobs:
name: Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo \\"::set-output name=dir::$(yarn cache dir)\\"
- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn-cache
with:
path: \${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down Expand Up @@ -160,13 +160,13 @@ jobs:
name: Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo \\"::set-output name=dir::$(yarn cache dir)\\"
- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn-cache
with:
path: \${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down Expand Up @@ -196,13 +196,13 @@ jobs:
name: Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo \\"::set-output name=dir::$(yarn cache dir)\\"
- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn-cache
with:
path: \${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down Expand Up @@ -247,13 +247,13 @@ jobs:
name: Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo \\"::set-output name=dir::$(yarn cache dir)\\"
- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn-cache
with:
path: \${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down Expand Up @@ -295,13 +295,13 @@ jobs:
name: Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo \\"::set-output name=dir::$(yarn cache dir)\\"
- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn-cache
with:
path: \${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down Expand Up @@ -334,13 +334,13 @@ jobs:
name: Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo \\"::set-output name=dir::$(yarn cache dir)\\"
- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn-cache
with:
path: \${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down Expand Up @@ -370,13 +370,13 @@ jobs:
name: Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo \\"::set-output name=dir::$(yarn cache dir)\\"
- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn-cache
with:
path: \${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down Expand Up @@ -412,13 +412,13 @@ jobs:
name: Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo \\"::set-output name=dir::$(yarn cache dir)\\"
- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn-cache
with:
path: \${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down Expand Up @@ -448,13 +448,13 @@ jobs:
name: Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo \\"::set-output name=dir::$(yarn cache dir)\\"
- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn-cache
with:
path: \${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down Expand Up @@ -487,13 +487,13 @@ jobs:
name: Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo \\"::set-output name=dir::$(yarn cache dir)\\"
- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn-cache
with:
path: \${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down Expand Up @@ -523,13 +523,13 @@ jobs:
name: Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo \\"::set-output name=dir::$(yarn cache dir)\\"
- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn-cache
with:
path: \${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down Expand Up @@ -562,13 +562,13 @@ jobs:
name: Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo \\"::set-output name=dir::$(yarn cache dir)\\"
- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn-cache
with:
path: \${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down Expand Up @@ -598,13 +598,13 @@ jobs:
name: Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo \\"::set-output name=dir::$(yarn cache dir)\\"
- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn-cache
with:
path: \${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down Expand Up @@ -637,13 +637,13 @@ jobs:
name: Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo \\"::set-output name=dir::$(yarn cache dir)\\"
- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn-cache
with:
path: \${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down Expand Up @@ -673,13 +673,13 @@ jobs:
name: Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo \\"::set-output name=dir::$(yarn cache dir)\\"
- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn-cache
with:
path: \${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down Expand Up @@ -718,13 +718,13 @@ jobs:
name: Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo \\"::set-output name=dir::$(yarn cache dir)\\"
- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn-cache
with:
path: \${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down Expand Up @@ -760,13 +760,13 @@ jobs:
name: Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo \\"::set-output name=dir::$(yarn cache dir)\\"
- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn-cache
with:
path: \${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down Expand Up @@ -799,13 +799,13 @@ jobs:
name: Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo \\"::set-output name=dir::$(yarn cache dir)\\"
- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn-cache
with:
path: \${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down
8 changes: 4 additions & 4 deletions gitHubActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
name: Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn-cache
with:
path: \${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down Expand Up @@ -75,15 +75,15 @@ jobs:
test:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${answers.framework === 'expo' ? 16 : 18}
cache: "yarn"
- name: Cache Pods dependencies
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ios/Pods
key: \${{ runner.OS }}-pods-cache-\${{ hashFiles('**/ios/Podfile.lock') }}
Expand Down

0 comments on commit db2a2fe

Please sign in to comment.