NEVISACCESSAPP-6267: consolidate gh secrets #62
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: Verify Pull Request | |
on: | |
pull_request: | |
branches: [ 'main' ] | |
types: [opened, edited, synchronize, reopened] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GH_USERNAME: ${{ secrets.GH_USERNAME }} | |
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} | |
JAVA_VERSION: '17' | |
RUBY_VERSION: '3.1' | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository under $GITHUB_WORKSPACE | |
- name: Checkout Project | |
uses: actions/checkout@v4 | |
# Set Ruby version and Cache RubyGem dependencies | |
- name: Cache RubyGem Dependencies | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ env.RUBY_VERSION }} | |
bundler-cache: true | |
# Ensure correct Java version is installed | |
- name: Setup Java JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: ${{ env.JAVA_VERSION }} | |
# Build the Android app | |
- name: Run Fastlane | |
uses: maierj/[email protected] | |
with: | |
lane: 'pr' |