Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

Add GitHub build action #159

Merged
merged 1 commit into from
Jun 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: r2-shared-kotlin

on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]

jobs:
build:
name: Build and test
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Build
run: ./gradlew build -x test
- name: Test
run: ./gradlew test
1 change: 1 addition & 0 deletions r2-shared/src/test/java/org/readium/r2/shared/TestUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import org.readium.r2.shared.extensions.toMap
import org.readium.r2.shared.fetcher.Fetcher
import org.readium.r2.shared.fetcher.Resource
import org.readium.r2.shared.publication.Link
import org.readium.r2.shared.util.use
import java.io.File
import java.net.URL

Expand Down