Updated workflow

This commit is contained in:
Adrian Kuta 2021-09-03 21:00:57 +02:00
parent 0c5f41c8c7
commit 161624693f
2 changed files with 6 additions and 26 deletions

View File

@ -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

View File

@ -4,6 +4,7 @@ on:
pull_request: pull_request:
branches: branches:
- master - master
- develop
jobs: jobs:
build: build:
@ -17,7 +18,10 @@ jobs:
with: with:
distribution: adopt distribution: adopt
java-version: 11 java-version: 11
# Builds the release artifacts
- name: Build project
run: ./gradlew assemble
# Builds the release artifacts of the library # Run tests
- name: Test - name: Run tests
run: ./gradlew test run: ./gradlew test