Skip to content

Commit 576b6a4

Browse files
authored
Add GitHub actions and issue template (#1)
1 parent dd713e2 commit 576b6a4

File tree

14 files changed

+104
-387
lines changed

14 files changed

+104
-387
lines changed

readium/lcp/.github/ISSUE_TEMPLATE/bug_report.md renamed to .github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ If you can, drag and drop screenshots or a screencast to show the problem, they
3030
<!--
3131
If you can, drag and drop the publication used to reproduce the problem, after zipping it.
3232
33-
Then, explain the steps to reproduce the problem from the Test App (https://github.com/readium/r2-testapp-kotlin). For example:
33+
Then, explain the steps to reproduce the problem from the Test App. For example:
3434
3535
1. Open book X
3636
2. Go to chapter Y
@@ -42,15 +42,7 @@ Then, explain the steps to reproduce the problem from the Test App (https://gith
4242

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

45-
#### Readium versions
46-
47-
<!-- Remove unused modules -->
48-
49-
* `r2-shared-kotlin`:
50-
* `r2-streamer-kotlin`:
51-
* `r2-navigator-kotlin`:
52-
* `r2-opds-kotlin`:
53-
* `r2-lcp-kotlin`:
45+
* Readium version:
5446

5547
#### Development environment
5648

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
name: r2-shared-kotlin
1+
name: LCP
22

33
on:
44
push:
5-
branches: [ develop ]
5+
branches: [ main, develop ]
66
pull_request:
7-
branches: [ develop ]
87

98
jobs:
109
build:
@@ -14,12 +13,14 @@ jobs:
1413
steps:
1514
- name: Checkout
1615
uses: actions/checkout@v2
16+
with:
17+
lfs: 'true'
1718
- name: Set up JDK 11
1819
uses: actions/setup-java@v2
1920
with:
2021
java-version: '11'
2122
distribution: 'adopt'
2223
- name: Build
23-
run: ./gradlew build -x test
24+
run: ./gradlew clean :readium:lcp:build -x test
2425
- name: Test
25-
run: ./gradlew test
26+
run: ./gradlew :readium:lcp:test --continue

.github/workflows/navigator.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Navigator
2+
3+
on:
4+
push:
5+
branches: [ main, develop ]
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
name: Build and test
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
with:
17+
lfs: 'true'
18+
- name: Set up JDK 11
19+
uses: actions/setup-java@v2
20+
with:
21+
java-version: '11'
22+
distribution: 'adopt'
23+
- name: Build
24+
run: ./gradlew clean :readium:navigator:build -x test
25+
- name: Test
26+
run: ./gradlew :readium:navigator:test --continue
27+
28+
lint:
29+
name: Lint
30+
runs-on: macos-latest
31+
defaults:
32+
run:
33+
working-directory: readium/navigator
34+
env:
35+
scripts: ${{ 'src/main/assets/_scripts' }}
36+
37+
steps:
38+
- name: Checkout
39+
uses: actions/checkout@v2
40+
with:
41+
lfs: 'true'
42+
- name: Install dependencies
43+
run: npm install --prefix "$scripts"
44+
- name: Lint JavaScript
45+
run: yarn --cwd "$scripts" run lint
46+
- name: Check JavaScript formatting
47+
run: yarn --cwd "$scripts" run checkformat
48+
- name: Check if bundled scripts are up-to-date
49+
run: |
50+
make scripts
51+
git diff --exit-code --name-only src/main/assets/readium/scripts
52+
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
name: r2-lcp-kotlin
1+
name: OPDS
22

33
on:
44
push:
5-
branches: [ develop ]
5+
branches: [ main, develop ]
66
pull_request:
7-
branches: [ develop ]
87

98
jobs:
109
build:
@@ -14,12 +13,14 @@ jobs:
1413
steps:
1514
- name: Checkout
1615
uses: actions/checkout@v2
16+
with:
17+
lfs: 'true'
1718
- name: Set up JDK 11
1819
uses: actions/setup-java@v2
1920
with:
2021
java-version: '11'
2122
distribution: 'adopt'
2223
- name: Build
23-
run: ./gradlew clean build -x test
24+
run: ./gradlew clean :readium:opds:build -x test
2425
- name: Test
25-
run: ./gradlew test --continue
26+
run: ./gradlew :readium:opds:test --continue
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
name: r2-opds-kotlin
1+
name: Shared
22

33
on:
44
push:
5-
branches: [ develop ]
5+
branches: [ main, develop ]
66
pull_request:
7-
branches: [ develop ]
87

98
jobs:
109
build:
@@ -14,12 +13,14 @@ jobs:
1413
steps:
1514
- name: Checkout
1615
uses: actions/checkout@v2
16+
with:
17+
lfs: 'true'
1718
- name: Set up JDK 11
1819
uses: actions/setup-java@v2
1920
with:
2021
java-version: '11'
2122
distribution: 'adopt'
2223
- name: Build
23-
run: ./gradlew clean build -x test
24+
run: ./gradlew clean :readium:shared:build -x test
2425
- name: Test
25-
run: ./gradlew test --continue
26+
run: ./gradlew :readium:shared:test --continue
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
name: Build
1+
name: Streamer
22

33
on:
44
push:
5-
branches: [ develop ]
5+
branches: [ main, develop ]
66
pull_request:
7-
branches: [ develop ]
87

98
jobs:
109
build:
@@ -14,12 +13,14 @@ jobs:
1413
steps:
1514
- name: Checkout
1615
uses: actions/checkout@v2
16+
with:
17+
lfs: 'true'
1718
- name: Set up JDK 11
1819
uses: actions/setup-java@v2
1920
with:
2021
java-version: '11'
2122
distribution: 'adopt'
2223
- name: Build
23-
run: ./gradlew clean build -x test
24+
run: ./gradlew clean :readium:streamer:build -x test
2425
- name: Test
25-
run: ./gradlew test --continue
26+
run: ./gradlew :readium:streamer:test --continue

.github/workflows/test-app.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Test App
2+
3+
on:
4+
push:
5+
branches: [ main, develop ]
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
name: Build
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
with:
17+
lfs: 'true'
18+
- name: Set up JDK 11
19+
uses: actions/setup-java@v2
20+
with:
21+
java-version: '11'
22+
distribution: 'adopt'
23+
- name: Build
24+
run: ./gradlew clean :test-app:build

readium/navigator/.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 76 deletions
This file was deleted.

readium/navigator/.github/workflows/lint.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)