NEVISACCESSAPP-6212: update gh actions #114
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: Pull Request | |
on: | |
pull_request: | |
branches: ['main'] | |
workflow_dispatch: | |
inputs: | |
ios-runner-type: | |
type: choice | |
required: true | |
description: "Runner type" | |
default: "self-hosted" | |
options: | |
- "self-hosted" | |
- "macos-13" | |
env: | |
BUILD_TYPE: 'SNAPSHOT' #BUILD_TYPE: Type of the build; allowed values: 'SNAPSHOT', 'RELEASE' | |
GITHUB_USERNAME: ${{ secrets.PERSONAL_GITHUB_USERNAME }} | |
GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_GITHUB_ACCESS_TOKEN }} | |
XCODE_VERSION: 15.4 | |
JAVA_VERSION: 11 | |
RUBY_VERSION: 3.1 | |
jobs: | |
lint-and-format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: ./.github/actions/setup-node | |
- name: Lint files | |
run: yarn lint | |
- name: Run formatter | |
run: yarn formatcheck | |
install-and-check-dependencies: | |
runs-on: ubuntu-latest | |
needs: [lint-and-format] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: yarn install | |
- name: Check dependencies | |
run: yarn check-dependencies | |
build-android-new-arch: | |
runs-on: ubuntu-latest | |
needs: [install-and-check-dependencies] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build Android App with new arch | |
uses: ./.github/actions/build-android | |
with: | |
new-arch-enabled: true | |
build-android-old-arch: | |
runs-on: ubuntu-latest | |
needs: [install-and-check-dependencies] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build Android App with old arch | |
uses: ./.github/actions/build-android | |
with: | |
new-arch-enabled: false | |
build-ios-new-arch: | |
runs-on: ${{ github.event.inputs.ios-runner-type || 'self-hosted' }} | |
needs: [install-and-check-dependencies] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build iOS App with new arch | |
uses: ./.github/actions/build-ios | |
with: | |
new-arch-enabled: true | |
build-ios-old-arch: | |
runs-on: ${{ github.event.inputs.ios-runner-type || 'self-hosted' }} | |
needs: [install-and-check-dependencies] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build iOS App with old arch | |
uses: ./.github/actions/build-ios | |
with: | |
new-arch-enabled: false |