From 161624693f5c94f54b2eb9d209d9455aac003a4f Mon Sep 17 00:00:00 2001 From: Adrian Kuta Date: Fri, 3 Sep 2021 21:00:57 +0200 Subject: [PATCH] Updated workflow --- .github/workflows/build.yml | 24 ------------------------ .github/workflows/test.yml | 8 ++++++-- 2 files changed, 6 insertions(+), 26 deletions(-) delete mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 660df3d..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Build - -on: pull_request - -jobs: - build: - name: Check project build - runs-on: ubuntu-latest - steps: - - name: Check out code - uses: actions/checkout@v2 - - name: Set up JDK 11 - uses: actions/setup-java@v2 - with: - distribution: adopt - java-version: 11 - - # Builds the release artifacts of the library - - name: Build - run: ./gradlew assemble - - # Generates other artifacts (javadocJar is optional) - - name: Source jar and dokka - run: ./gradlew androidSourcesJar javadocJar diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 48d4f91..6ea11f7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,6 +4,7 @@ on: pull_request: branches: - master + - develop jobs: build: @@ -17,7 +18,10 @@ jobs: with: distribution: adopt java-version: 11 + # Builds the release artifacts + - name: Build project + run: ./gradlew assemble - # Builds the release artifacts of the library - - name: Test + # Run tests + - name: Run tests run: ./gradlew test