chore(): experiment with fexcore auto-grab tzst #1
This file contains hidden or 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 build check | |
| on: | |
| pull_request: | |
| branches: [ "master" ] | |
| paths-ignore: | |
| - '**.md' | |
| - '.gitignore' | |
| - 'keyvalues/**' | |
| - 'media/**' | |
| - '.github/ISSUE_TEMPLATE/**' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checking out GameNative | |
| uses: actions/checkout@v4 | |
| - name: Setup Java 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Inject credentials | |
| if: github.event.pull_request.head.repo.full_name == github.repository | |
| run: | | |
| cat <<EOF > local.properties | |
| POSTHOG_API_KEY=${{ secrets.POSTHOG_API_KEY }} | |
| POSTHOG_HOST=${{ secrets.POSTHOG_HOST }} | |
| EOF | |
| - name: Inject dummy credentials | |
| if: github.event.pull_request.head.repo.full_name != github.repository | |
| run: | | |
| cat <<EOF > local.properties | |
| POSTHOG_API_KEY=dummy | |
| POSTHOG_HOST=https://us.i.posthog.com | |
| EOF | |
| - name: Validate Gradle wrapper | |
| uses: gradle/actions/wrapper-validation@v4 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Run unit tests | |
| run: ./gradlew :app:testDebugUnitTest |