Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ If you can, drag and drop screenshots or a screencast to show the problem, they
<!--
If you can, drag and drop the publication used to reproduce the problem, after zipping it.

Then, explain the steps to reproduce the problem from the Test App (https://github.com/readium/r2-testapp-kotlin). For example:
Then, explain the steps to reproduce the problem from the Test App. For example:

1. Open book X
2. Go to chapter Y
Expand All @@ -42,15 +42,7 @@ Then, explain the steps to reproduce the problem from the Test App (https://gith

<!-- Fill in the following information -->

#### Readium versions

<!-- Remove unused modules -->

* `r2-shared-kotlin`:
* `r2-streamer-kotlin`:
* `r2-navigator-kotlin`:
* `r2-opds-kotlin`:
* `r2-lcp-kotlin`:
* Readium version:

#### Development environment

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: r2-shared-kotlin
name: LCP

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

jobs:
build:
Expand All @@ -14,12 +13,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: 'true'
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Build
run: ./gradlew build -x test
run: ./gradlew clean :readium:lcp:build -x test
- name: Test
run: ./gradlew test
run: ./gradlew :readium:lcp:test --continue
52 changes: 52 additions & 0 deletions .github/workflows/navigator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Navigator

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

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

steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: 'true'
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Build
run: ./gradlew clean :readium:navigator:build -x test
- name: Test
run: ./gradlew :readium:navigator:test --continue

lint:
name: Lint
runs-on: macos-latest
defaults:
run:
working-directory: readium/navigator
env:
scripts: ${{ 'src/main/assets/_scripts' }}

steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: 'true'
- name: Install dependencies
run: npm install --prefix "$scripts"
- name: Lint JavaScript
run: yarn --cwd "$scripts" run lint
- name: Check JavaScript formatting
run: yarn --cwd "$scripts" run checkformat
- name: Check if bundled scripts are up-to-date
run: |
make scripts
git diff --exit-code --name-only src/main/assets/readium/scripts

Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: r2-lcp-kotlin
name: OPDS

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

jobs:
build:
Expand All @@ -14,12 +13,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: 'true'
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Build
run: ./gradlew clean build -x test
run: ./gradlew clean :readium:opds:build -x test
- name: Test
run: ./gradlew test --continue
run: ./gradlew :readium:opds:test --continue
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: r2-opds-kotlin
name: Shared

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

jobs:
build:
Expand All @@ -14,12 +13,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: 'true'
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Build
run: ./gradlew clean build -x test
run: ./gradlew clean :readium:shared:build -x test
- name: Test
run: ./gradlew test --continue
run: ./gradlew :readium:shared:test --continue
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Build
name: Streamer

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

jobs:
build:
Expand All @@ -14,12 +13,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: 'true'
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Build
run: ./gradlew clean build -x test
run: ./gradlew clean :readium:streamer:build -x test
- name: Test
run: ./gradlew test --continue
run: ./gradlew :readium:streamer:test --continue
24 changes: 24 additions & 0 deletions .github/workflows/test-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Test App

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

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

steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: 'true'
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Build
run: ./gradlew clean :test-app:build
76 changes: 0 additions & 76 deletions readium/navigator/.github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

28 changes: 0 additions & 28 deletions readium/navigator/.github/workflows/lint.yml

This file was deleted.

Loading