Workaround for Flipper connection mac change #2164
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 CI | |
on: | |
pull_request: | |
branches: | |
- 'dev' | |
merge_group: | |
# Concurrency strategy: | |
# github.workflow: distinguish this workflow from others | |
# github.event_name: distinguish `push` event from `pull_request` event | |
# github.ref_name: distinguish branch | |
# github.repository: distinguish owner+repository | |
# | |
# Reference: | |
# https://docs.github.com/en/actions/using-jobs/using-concurrency | |
# https://docs.github.com/en/actions/learn-github-actions/contexts#github-context | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name }}-${{github.ref_name}}-${{github.repository}} | |
cancel-in-progress: true | |
jobs: | |
info: | |
name: "Display concurrency info" | |
runs-on: ubuntu-latest | |
steps: | |
- run: | | |
echo "github.workflow=${{ github.workflow }}" | |
echo "github.event_name=${{ github.event_name }}" | |
echo "github.ref_name=${{ github.ref_name }}" | |
echo "github.repository=${{ github.repository }}" | |
test: | |
name: "Run unit tests" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4 | |
with: | |
submodules: 'recursive' | |
- name: Set up JDK 1.17 | |
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Unit test | |
uses: gradle/gradle-build-action@4c39dd82cd5e1ec7c6fa0173bb41b4b6bb3b86ff # v3 | |
with: | |
arguments: testDebugUnitTest desktopTest | |
detekt: | |
name: "Check project by detekt" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4 | |
with: | |
submodules: 'recursive' | |
- name: Set up JDK 1.17 | |
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: detekt | |
uses: gradle/gradle-build-action@4c39dd82cd5e1ec7c6fa0173bb41b4b6bb3b86ff # v3 | |
with: | |
arguments: detekt | |
android_lint: | |
name: "Check project by android`s lint" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4 | |
with: | |
submodules: 'recursive' | |
- name: Set up JDK 1.17 | |
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Android lint | |
uses: gradle/gradle-build-action@4c39dd82cd5e1ec7c6fa0173bb41b4b6bb3b86ff # v3 | |
with: | |
arguments: lint |