Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: CI deps update #352

Merged
merged 10 commits into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 25 additions & 11 deletions .github/workflows/android-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,30 @@ on:
jobs:
test:
name: ⚙️ Automated test cases
runs-on: macos-12
runs-on: ubuntu-latest
timeout-minutes: 60
env:
WORKING_DIRECTORY: example
API_LEVEL: 28
concurrency:
group: android-e2e-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.x
cache: "yarn"
- name: Setup JDK 11
uses: actions/setup-java@v3
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
distribution: "microsoft"
java-version: "11"
java-version: "17"
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: Restore node_modules from cache
uses: actions/cache@v3
uses: actions/cache@v4
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand All @@ -59,7 +60,7 @@ jobs:
- name: Install e2e dependencies
run: yarn install --cwd e2e
- name: Restore Gradle cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
Expand All @@ -70,11 +71,24 @@ jobs:
- name: Build app
working-directory: e2e
run: yarn build-example:android
- name: Enable KVM group perms
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: AVD cache
uses: actions/cache@v4
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ env.API_LEVEL }}
- name: Run emulator and tests
uses: reactivecircus/android-emulator-runner@v2.28.0
uses: reactivecircus/android-emulator-runner@v2.30.1
with:
working-directory: e2e
api-level: 28
api-level: ${{ env.API_LEVEL }}
target: default
profile: pixel_2
ram-size: "4096M"
Expand All @@ -83,7 +97,7 @@ jobs:
avd-name: e2e_emulator
arch: x86_64
script: yarn test-example:android
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: android-fail-screen-shoots
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/build-android-fabric.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ jobs:
name: Build Android Fabric Example App
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup JDK 11
uses: actions/setup-java@v3
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
distribution: "microsoft"
java-version: "11"
java-version: "17"

- name: Get yarn cache directory path
id: fabric-yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: Restore node_modules from cache
uses: actions/cache@v3
uses: actions/cache@v4
id: yarn-cache
with:
path: ${{ steps.fabric-yarn-cache-dir-path.outputs.dir }}
Expand All @@ -48,7 +48,7 @@ jobs:
run: yarn install --frozen-lockfile --cwd FabricExample

- name: Restore Gradle cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ jobs:
name: Build Android Example App
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup JDK 11
uses: actions/setup-java@v3
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
distribution: "microsoft"
java-version: "11"
java-version: "17"

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: Restore node_modules from cache
uses: actions/cache@v3
uses: actions/cache@v4
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand All @@ -46,7 +46,7 @@ jobs:
run: yarn install --frozen-lockfile --cwd example

- name: Restore Gradle cache
uses: actions/cache@v3
uses: actions/cache@v4
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 @@ -27,18 +27,18 @@ on:
jobs:
build:
name: Build iOS FabricExample App
runs-on: macOS-12
runs-on: macOS-14
defaults:
run:
working-directory: FabricExample/ios
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Get yarn cache directory path
id: fabric-yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: Restore node_modules from cache
uses: actions/cache@v3
uses: actions/cache@v4
id: yarn-cache
with:
path: ${{ steps.fabric-yarn-cache-dir-path.outputs.dir }}
Expand All @@ -62,7 +62,7 @@ jobs:
working-directory: FabricExample/ios

- name: Restore Pods cache
uses: actions/cache@v3
uses: actions/cache@v4
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 @@ -25,18 +25,18 @@ on:
jobs:
build:
name: Build iOS Example App
runs-on: macOS-12
runs-on: macOS-14
defaults:
run:
working-directory: example/ios
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: Restore node_modules from cache
uses: actions/cache@v3
uses: actions/cache@v4
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand All @@ -58,7 +58,7 @@ jobs:
working-directory: example/ios

- name: Restore Pods cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
example/ios/Pods
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/compress-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Compress Images
uses: calibreapp/image-actions@main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/compress-lottie.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Compress Lottie
run: find . -name '*.lottie.json' -exec npx lottie-optim -p 1 -o {} {} \;
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
run:
working-directory: ./docs
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.x
cache: yarn
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ios-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ on:
jobs:
test:
name: ⚙️ Automated test cases
runs-on: macos-12
runs-on: macos-14
timeout-minutes: 60
env:
WORKING_DIRECTORY: example
concurrency:
group: ios-e2e-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.x
cache: "yarn"
Expand All @@ -45,7 +45,7 @@ jobs:
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: Restore node_modules from cache
uses: actions/cache@v3
uses: actions/cache@v4
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand All @@ -65,7 +65,7 @@ jobs:
with:
cache_key: react-native-keyboard-controller-e2e
- name: Restore Pods cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
example/ios/Pods
Expand All @@ -85,7 +85,7 @@ jobs:
- name: Test app
working-directory: e2e
run: yarn test-example:ios
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: ios-fail-screen-shoots
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/size-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ jobs:
pull-requests: write
steps:
- name: Checkout to target branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.base.ref }}
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Calculate size of package (target)
id: old-size
run: echo "OLD_SIZE=$(node scripts/size.js)" >> "$GITHUB_OUTPUT"
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Calculate size of package (current)
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/verify-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
name: 🔎 Kotlin Lint
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: touchlab-lab/[email protected]
with:
ktlint_version: 0.48.0
Expand All @@ -31,9 +31,9 @@ jobs:
run:
working-directory: ./android
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup JDK 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: "microsoft"
java-version: "11"
Expand All @@ -48,9 +48,9 @@ jobs:
run:
working-directory: ./android
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup JDK 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: "microsoft"
java-version: "11"
Expand All @@ -65,12 +65,12 @@ jobs:
run:
working-directory: ./android
steps:
- uses: actions/checkout@v3
- name: Setup JDK 11
uses: actions/setup-java@v3
- uses: actions/checkout@v4
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
distribution: "microsoft"
java-version: "11"
java-version: "17"
- name: Install Detekt
run: |
curl -sSLO https://github.com/detekt/detekt/releases/download/v1.23.1/detekt-cli-1.23.1.zip
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/verify-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
python-version: [3.7]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

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

Expand Down
Loading
Loading