Skip to content

Commit

Permalink
chore: avoid the usage of deprecated GitHub actions (#107)
Browse files Browse the repository at this point in the history
## 📜 Description

Fixed deprecation warnings in GitHub actions.

## 💡 Motivation and Context

To avoid any CI breaks better to migrate it safely now.

## 📢 Changelog

### CI
- `actions/cache@v2` -> `actions/cache@v3`;
- `macOS-latest` -> `macOS-12`;
- `actions/setup-python@v2` -> `actions/setup-python@v3`;
- `mikehardy/buildcache-action@v1` -> `mikehardy/buildcache-action@v2`.

## 🤔 How Has This Been Tested?

Tested on GitHub actions.

## 📝 Checklist

- [x] CI successfully passed
  • Loading branch information
kirillzyusko committed Dec 19, 2022
1 parent 4b337da commit c024d13
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-android-fabric.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
id: fabric-yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Restore node_modules from cache
uses: actions/cache@v2
uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.fabric-yarn-cache-dir-path.outputs.dir }}
Expand All @@ -50,7 +50,7 @@ jobs:
run: yarn install --frozen-lockfile --cwd FabricExample

- name: Restore Gradle cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Restore node_modules from cache
uses: actions/cache@v2
uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand All @@ -48,7 +48,7 @@ jobs:
run: yarn install --frozen-lockfile --cwd example

- name: Restore Gradle cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build-ios-fabric.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ on:
jobs:
build:
name: Build iOS FabricExample App
runs-on: macOS-latest
runs-on: macOS-12
defaults:
run:
working-directory: FabricExample/ios
Expand All @@ -36,7 +36,7 @@ jobs:
id: fabric-yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Restore node_modules from cache
uses: actions/cache@v2
uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.fabric-yarn-cache-dir-path.outputs.dir }}
Expand All @@ -47,7 +47,7 @@ jobs:
run: yarn install --frozen-lockfile --cwd ..

- name: Restore buildcache
uses: mikehardy/buildcache-action@v1
uses: mikehardy/buildcache-action@v2
continue-on-error: true
with:
cache_key: react-native-keyboard-controller-fabric
Expand All @@ -60,7 +60,7 @@ jobs:
working-directory: FabricExample/ios

- name: Restore Pods cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
FabricExample/ios/Pods
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 @@ -23,7 +23,7 @@ on:
jobs:
build:
name: Build iOS Example App
runs-on: macOS-latest
runs-on: macOS-12
defaults:
run:
working-directory: example/ios
Expand All @@ -34,7 +34,7 @@ jobs:
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Restore node_modules from cache
uses: actions/cache@v2
uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand All @@ -45,7 +45,7 @@ jobs:
run: yarn install --frozen-lockfile --cwd ..

- name: Restore buildcache
uses: mikehardy/buildcache-action@v1
uses: mikehardy/buildcache-action@v2
continue-on-error: true

- name: Setup Ruby (bundle)
Expand All @@ -56,7 +56,7 @@ jobs:
working-directory: example/ios

- name: Restore Pods cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
example/ios/Pods
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/verify-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
env:
WORKING_DIRECTORY: ios
format:
runs-on: macOS-latest
runs-on: macOS-12
name: Swift Format
defaults:
run:
Expand All @@ -44,7 +44,7 @@ jobs:
- name: Verify that the formatted code hasn't been changed
run: git diff --exit-code HEAD
objc-lint:
runs-on: macOS-latest
runs-on: macOS-12
name: ObjC Lint
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit c024d13

Please sign in to comment.