Skip to content
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
16 changes: 4 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2.1
executors:
default:
docker:
- image: circleci/node:10
- image: cimg/node:22.11
working_directory: ~/project

commands:
Expand All @@ -22,21 +22,13 @@ jobs:
keys:
- dependencies-{{ checksum "package.json" }}
- dependencies-
- restore_cache:
keys:
- dependencies-example-{{ checksum "example/package.json" }}
- dependencies-example-
- run:
name: Install dependencies
command: |
yarn install --cwd example --frozen-lockfile
yarn install --frozen-lockfile
yarn install --immutable
- save_cache:
key: dependencies-{{ checksum "package.json" }}
paths: node_modules
- save_cache:
key: dependencies-example-{{ checksum "example/package.json" }}
paths: example/node_modules
- persist_to_workspace:
root: .
paths: .
Expand All @@ -57,7 +49,7 @@ jobs:
- run:
name: Typecheck files
command: |
yarn typescript
yarn typecheck

unit-tests:
executor: default
Expand All @@ -78,7 +70,7 @@ jobs:
- run:
name: Build package
command: |
yarn prepare
yarn prepack

workflows:
build-and-test:
Expand Down
18 changes: 0 additions & 18 deletions .github/stale.yml

This file was deleted.

36 changes: 11 additions & 25 deletions .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,55 +7,41 @@ on:
paths:
- '.github/workflows/build-android.yml'
- 'android/**'
- 'example/android/**'
- 'examples/bare/android/**'
- 'yarn.lock'
- 'example/yarn.lock'
- 'src/Spec/**'
pull_request:
paths:
- '.github/workflows/build-android.yml'
- 'android/**'
- 'example/android/**'
- 'examples/bare/android/**'
- 'yarn.lock'
- 'example/yarn.lock'
- 'src/Spec/**'

jobs:
build_example:
name: Build Android Example App
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup JDK 11
uses: actions/setup-java@v1
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'zulu'
java-version: 17

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Restore node_modules from cache
uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install node_modules
run: yarn install --frozen-lockfile
- name: Install node_modules for example/
run: yarn install --frozen-lockfile --cwd example
run: yarn install --immutable

- name: Restore Gradle cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Run Gradle Build for example/android/
run: cd example/android && ./gradlew assembleDebug --build-cache && cd ../..
- name: Run Gradle Build for examples/bare/android/
run: cd examples/bare/android && ./gradlew assembleDebug --build-cache && cd ../../..
42 changes: 16 additions & 26 deletions .github/workflows/build-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ name: Build iOS App
on:
push:
branches:
- master
- main
paths:
- '.github/workflows/build-ios.yml'
- 'ios/**'
- '*.podspec'
- 'example/ios/**'
- 'examples/bare/ios/**'
- 'src/Spec/**'
pull_request:
paths:
- '.github/workflows/build-ios.yml'
- 'ios/**'
- '*.podspec'
- 'example/ios/**'
- 'examples/bare/ios/**'
- 'src/Spec/**'

jobs:
Expand All @@ -24,23 +24,13 @@ jobs:
runs-on: macOS-latest
defaults:
run:
working-directory: example/ios
working-directory: examples/bare/ios
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Restore node_modules from cache
uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install node_modules for example/
run: yarn install --frozen-lockfile --cwd ..
- name: Install node_modules
run: yarn install --immutable
working-directory: .

- name: Restore buildcache
uses: mikehardy/buildcache-action@v1
Expand All @@ -49,32 +39,32 @@ jobs:
- name: Setup Ruby (bundle)
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
ruby-version: 3.2
bundler-cache: true
working-directory: example/ios
working-directory: examples/bare

- name: Restore Pods cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
example/ios/Pods
examples/bare/ios/Pods
~/Library/Caches/CocoaPods
~/.cocoapods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: Install Pods
run: bundle exec pod check || NO_FLIPPER=1 RCT_NEW_ARCH_ENABLED=1 bundle exec pod install
run: bundle exec pod check || bundle exec pod install
- name: Install xcpretty
run: gem install xcpretty
- name: Build App
run: "set -o pipefail && xcodebuild \
CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ \
-derivedDataPath build -UseModernBuildSystem=YES \
-workspace CompressorExample.xcworkspace \
-scheme CompressorExample \
-workspace BareExample.xcworkspace \
-scheme BareExample \
-sdk iphonesimulator \
-configuration Debug \
-destination 'platform=iOS Simulator,name=iPhone 11 Pro' \
-destination 'platform=iOS Simulator,name=iPhone 15 Pro' \
build \
CODE_SIGNING_ALLOWED=NO | xcpretty"
2 changes: 1 addition & 1 deletion .github/workflows/stale-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v4
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 365
Expand Down
33 changes: 11 additions & 22 deletions .github/workflows/validate-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Validate Android
on:
push:
branches:
- master
- main
paths:
- '.github/workflows/validate-android.yml'
- 'android/**'
Expand All @@ -20,32 +20,21 @@ jobs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./example/android
working-directory: ./examples/bare/android
steps:
- uses: actions/checkout@v2
- name: Setup JDK 11
uses: actions/setup-java@v1
- uses: actions/checkout@v4
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'zulu'
java-version: 17

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Restore node_modules from cache
uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install node_modules
run: yarn install --frozen-lockfile --cwd ../..
- name: Install node_modules for example/
run: yarn install --frozen-lockfile --cwd ..
run: yarn install --immutable
working-directory: .

- name: Restore Gradle cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
Expand All @@ -59,4 +48,4 @@ jobs:
- name: Parse Gradle Lint Report
uses: yutailang0119/action-android-lint@v3.1.0
with:
report-path: example/android/build/reports/lint-results.xml
report-path: examples/bare/android/build/reports/lint-results.xml
Loading
Loading