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
142 changes: 0 additions & 142 deletions .github/actions/build-app/action.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/actions/lock-java-ver/action.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/actions/lock-ruby-ver/action.yml

This file was deleted.

68 changes: 68 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Build

on:
push:
branches:
- master
paths:
- '.github/workflows/build.yml'
- 'android/**'
- 'ios/**'
- 'src/**'
- '*.podspec'
- 'Package.swift'
- 'package.json'
pull_request:
types: [ opened, synchronize, reopened ]
paths:
- '.github/workflows/build.yml'
- 'android/**'
- 'ios/**'
- 'src/**'
- '*.podspec'
- 'Package.swift'
- 'package.json'

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build-android:
name: Build Android (RN ${{ matrix.rn_ver }})
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
rn_ver: [ latest, 0.87.1, 0.86.3 ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: retyui/oss-react-native-build/build-app@v0
with:
platform: android
rn-ver: ${{ matrix.rn_ver }}
android-arch: arm64-v8a

build-ios:
name: Build iOS ${{ matrix.ios-package-manager }} (RN ${{ matrix.rn_ver }})
runs-on: macos-15
strategy:
fail-fast: false
matrix:
rn_ver: [ latest, 0.87.1, 0.86.3 ]
ios-package-manager: [ pods, spm ]
exclude:
- rn_ver: 0.86.3 # SPM requires RN >= 0.87
ios-package-manager: spm
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: retyui/oss-react-native-build/build-app@v0
with:
platform: ios
rn-ver: ${{ matrix.rn_ver }}
ios-package-manager: ${{ matrix.ios-package-manager }}
83 changes: 83 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: Lint

on:
push:
branches:
- master
paths:
- '.github/workflows/lint.yml'
- '.github/actions/**'
- 'android/**'
- 'src/**'
- 'example/**'
- 'package.json'
- 'yarn.lock'
- '.yarnrc.yml'
- '.yarn/releases/**'
- 'babel.config.js'
- 'eslint.config.js'
- 'prettier.config.js'
- 'tsconfig*.json'
pull_request:
types: [ opened, synchronize, reopened ]
paths:
- '.github/workflows/lint.yml'
- '.github/actions/**'
- 'android/**'
- 'src/**'
- 'example/**'
- 'package.json'
- 'yarn.lock'
- '.yarnrc.yml'
- '.yarn/releases/**'
- 'babel.config.js'
- 'eslint.config.js'
- 'prettier.config.js'
- 'tsconfig*.json'

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
ACTIONS_RUNNER_DEBUG: true # Enable debug logs

jobs:
cache-node-modules:
name: Cache node_modules
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ./.github/actions/install-dependencies
with:
lookup-only: true

code-quality:
name: Code Quality
runs-on: ubuntu-22.04
needs: [cache-node-modules]
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ./.github/actions/install-dependencies

- name: Lint Android files
run: yarn lint:android

- name: Types check
run: yarn ts

- name: Lib build
run: yarn build

- name: Lint files
run: yarn lint
# required to run after `yarn build`
Loading
Loading