diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..f8deda9 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +name: Run unit tests + +on: + push: + branches: + - '*' + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + + - name: Gradle Wrapper Validation + uses: gradle/wrapper-validation-action@v1.1.0 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + + - name: Run tests + run: ./gradlew -p compose-pay-button build # use connectedCheck in the future \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index e2a4251..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Run unit tests - -on: - push: - branches: - - '*' - pull_request: - branches: - - main - -jobs: - test: - runs-on: macos-latest - steps: - - name: checkout - uses: actions/checkout@v3 - - - name: run tests - uses: reactivecircus/android-emulator-runner@v2 - with: - api-level: 29 - script: ./gradlew connectedCheck \ No newline at end of file