Skip to content

Use device tests reusable workflow as a job #373

Use device tests reusable workflow as a job

Use device tests reusable workflow as a job #373

Workflow file for this run

name: Build & Test Project
on:
push:
branches:
- main
pull_request:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set Up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Run Unit Tests
run: ./gradlew testDebug
- name: Assemble
env:
VERSION_CODE: ${{ github.run_number }}
run: ./gradlew assembleDebug assembleDebugAndroidTest
- uses: actions/upload-artifact@v4
with:
name: apk
path: |
app/build/outputs/apk/debug/app-debug.apk
app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk
pre-release-upload:
needs: build
if: github.event_name != 'pull_request'
uses: ./.github/workflows/pre-release-upload.yml

Check failure on line 43 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

error parsing called workflow ".github/workflows/build.yml" -> "./.github/workflows/pre-release-upload.yml" : You have an error in your yaml syntax on line 8