Skip to content

Commit

Permalink
chore: github action fixes (#768)
Browse files Browse the repository at this point in the history
* checkout v4

* checkout head sha

* update cache

* actions/setup-node@v4
  • Loading branch information
henninghall authored Feb 26, 2024
1 parent 37f653d commit 76b11f0
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 21 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ jobs:
outputs:
app: app/build/outputs/apk/release
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
ref: ${{ github.event.pull_request.head.sha }}

- uses: actions/cache@v3
- uses: actions/cache@v4
id: cache-android
with:
path: ${{ env.APP_PATH }}
key: ${{ runner.os }}-${{ hashFiles('src/**', 'android/**', env.EXAMPLE_SRC, env.APP_PATH ) }}

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
if: steps.cache-android.outputs.cache-hit != 'true'
with:
node-version: 14.18.1
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ jobs:
runs-on: macos-13

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
ref: ${{ github.event.pull_request.head.sha }}

- uses: actions/cache@v3
- uses: actions/cache@v4
id: cache
with:
path: |
${{ env.APP_PATH }}
${{ env.APP_PATH }}.dSYM
key: ${{ runner.os }}-${{ hashFiles('src/**', 'ios/**', env.EXAMPLE_SRC, env.APP_PATH ) }}

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
if: steps.cache.outputs.cache-hit != 'true'
with:
node-version: 14.18.1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 12
registry-url: https://registry.npmjs.org/
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-android-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:
environment: e2e Android

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
ref: ${{ github.event.pull_request.head.sha }}

- uses: actions/cache@v3
- uses: actions/cache@v4
id: cache-android
with:
path: ${{ env.APP_PATH }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-android-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
ref: ${{ github.event.pull_request.head.sha }}

- uses: actions/setup-java@v3
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-ios-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
environment: e2e iOS

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
ref: ${{ github.event.pull_request.head.sha }}

- uses: actions/cache@v3
- uses: actions/cache@v4
id: cache
with:
path: |
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/test-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
uses: actions/checkout@v4

- name: Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4

- name: Install npm dependencies
run: yarn install --frozen-lockfile
Expand Down

0 comments on commit 76b11f0

Please sign in to comment.