Browse Source

chore: github action fixes (#768)

* checkout v4

* checkout head sha

* update cache

* actions/setup-node@v4
master
Henning Hall 1 year ago
committed by GitHub
parent
commit
76b11f0c67
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
7 changed files with 19 additions and 21 deletions
  1. +4
    -4
      .github/workflows/build-android.yml
  2. +4
    -4
      .github/workflows/build-ios.yml
  3. +1
    -1
      .github/workflows/publish.yml
  4. +3
    -3
      .github/workflows/test-android-e2e.yml
  5. +2
    -2
      .github/workflows/test-android-unit.yml
  6. +3
    -3
      .github/workflows/test-ios-e2e.yml
  7. +2
    -4
      .github/workflows/test-js.yml

+ 4
- 4
.github/workflows/build-android.yml View File

@ -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

+ 4
- 4
.github/workflows/build-ios.yml View File

@ -15,11 +15,11 @@ 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: |
@ -27,7 +27,7 @@ jobs:
${{ 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

+ 1
- 1
.github/workflows/publish.yml View File

@ -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/

+ 3
- 3
.github/workflows/test-android-e2e.yml View File

@ -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 }}

+ 2
- 2
.github/workflows/test-android-unit.yml View File

@ -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:

+ 3
- 3
.github/workflows/test-ios-e2e.yml View File

@ -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: |

+ 2
- 4
.github/workflows/test-js.yml View File

@ -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

Loading…
Cancel
Save