fix(build): bump @octokit/core
to 5.x
#4476
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: pull_request | |
concurrency: | |
# Ensure single build of a pull request | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
review: | |
name: "Review" | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup the toolchain | |
uses: ./.github/actions/setup-toolchain | |
- name: Ensure rnx-kit packages come from our repository | |
run: | | |
if grep 'rnx-kit.*@npm' yarn.lock; then | |
exit 1 | |
fi | |
- name: Deduplicate packages | |
run: | | |
yarn dedupe --check | |
- name: Install package dependencies | |
run: | | |
yarn | |
- name: Check for change files | |
run: | | |
yarn change:check --since origin/${{ github.base_ref }} | |
- name: Report formatting problems | |
run: | | |
yarn format | |
git diff --exit-code | |
- name: Report dependency problems | |
run: | | |
yarn rnx-align-deps --write | |
git diff --exit-code | |
- name: Report package metadata inconsistencies | |
run: | | |
node scripts/lint-metadata.mjs | |
git diff --exit-code | |
- name: Report @rnx-kit/build workflow inconsistencies | |
run: | | |
cp incubator/build/workflows/github.yml .github/workflows/rnx-build.yml | |
git diff --exit-code | |
build: | |
name: "Build" | |
strategy: | |
matrix: | |
node-version: [16, 18, 20] | |
os: [ubuntu-22.04, windows-2022] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup the toolchain | |
uses: ./.github/actions/setup-toolchain | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install package dependencies | |
run: | | |
yarn | |
- name: Build and test packages | |
run: | | |
yarn build:ci --base origin/${{ github.base_ref }} | |
- name: Ensure READMEs are up-to-date | |
if: ${{ matrix.node-version == 18 && matrix.os == 'ubuntu-22.04' }} | |
run: | | |
yarn update-readme | |
git diff --exit-code | |
- name: Bundle packages | |
run: | | |
yarn bundle:ci --base origin/${{ github.base_ref }} | |
- name: Bundle test app with esbuild | |
run: | | |
yarn nx affected --base origin/${{ github.base_ref }} --target bundle+esbuild | |
shell: bash | |
- name: Bundle test app with RAM bundle format | |
run: | | |
yarn nx affected --base origin/${{ github.base_ref }} --target ram-bundle | |
shell: bash | |
build-android-test-app: | |
name: "Build Android" | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup the toolchain | |
uses: ./.github/actions/setup-toolchain | |
with: | |
jdk-version: 11 | |
- name: Install package dependencies | |
run: | | |
yarn | |
- name: Determine whether the Android app needs to be built | |
id: affected-projects | |
run: | | |
if [[ "$(yarn show-affected --base origin/${{ github.base_ref }})" = *"@rnx-kit/test-app"* ]]; then | |
echo 'android=true' >> $GITHUB_OUTPUT | |
fi | |
- name: Build Android app | |
if: ${{ steps.affected-projects.outputs.android != '' }} | |
run: | | |
yarn build:android | |
working-directory: packages/test-app | |
build-ios-test-app: | |
name: "Build iOS" | |
runs-on: macos-12 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup the toolchain | |
uses: ./.github/actions/setup-toolchain | |
with: | |
platform: ios | |
- name: Install package dependencies | |
run: | | |
yarn | |
- name: Determine whether the iOS app needs to be built | |
id: affected-projects | |
run: | | |
if [[ "$(yarn show-affected --base origin/${{ github.base_ref }})" = *"@rnx-kit/test-app"* ]]; then | |
echo 'ios=true' >> $GITHUB_OUTPUT | |
fi | |
- name: Install Pods | |
uses: microsoft/react-native-test-app/.github/actions/cocoapods@trunk | |
if: ${{ steps.affected-projects.outputs.ios != '' }} | |
with: | |
project-directory: ios | |
working-directory: packages/test-app | |
- name: Build iOS app | |
if: ${{ steps.affected-projects.outputs.ios != '' }} | |
run: | | |
yarn build:ios | |
working-directory: packages/test-app | |
build-website: | |
name: "Build the website" | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup the toolchain | |
uses: ./.github/actions/setup-toolchain | |
with: | |
node-cache: "" | |
- name: Install package dependencies (docsite) | |
run: | | |
yarn | |
working-directory: docsite | |
- name: Build website | |
run: | | |
yarn build | |
working-directory: docsite | |
label: | |
name: "Label" | |
permissions: | |
contents: read | |
pull-requests: write | |
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/labeler@v4 | |
with: | |
repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
sync-labels: true | |
continue-on-error: true |