Skip to content

Commit 764890f

Browse files
authored
Merge pull request eXist-db#67 from duncdrum/maintenance_24
Maintenance 24
2 parents 321959b + 1f88a7b commit 764890f

File tree

21 files changed

+3393
-2976
lines changed

21 files changed

+3393
-2976
lines changed

.github/dependabot.yml

+10
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,13 @@ updates:
66
interval: daily
77
time: "03:00"
88
open-pull-requests-limit: 10
9+
- package-ecosystem: npm
10+
directory: "/"
11+
schedule:
12+
interval: daily
13+
time: "03:00"
14+
open-pull-requests-limit: 10
15+
- package-ecosystem: "github-actions"
16+
directory: "/"
17+
schedule:
18+
interval: "weekly"

.github/workflows/ci.yml

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: CI
2+
on: [push, pull_request]
3+
jobs:
4+
build:
5+
name: Exist ${{ matrix.exist-version }} (Java ${{ matrix.java-version }}) build and test
6+
strategy:
7+
fail-fast: true
8+
matrix:
9+
exist-version: [latest, 6.2.0]
10+
java-version: ['8', '17']
11+
os: [ubuntu-latest]
12+
exclude:
13+
- exist-version: 6.2.0
14+
java-version: 17
15+
- exist-version: latest
16+
java-version: 8
17+
18+
runs-on: ${{ matrix.os }}
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Set up JDK ${{ matrix.java-version }}
22+
uses: actions/setup-java@v4
23+
with:
24+
distribution: temurin
25+
cache: maven
26+
java-version: ${{ matrix.java-version }}
27+
- name: Install Test Dependencies
28+
run: |
29+
sudo apt-get update
30+
sudo apt-get install -y bats
31+
- name: Maven Build
32+
run: mvn clean package
33+
34+
- name: Add expath dependencies
35+
working-directory: target
36+
run: |
37+
wget http://exist-db.org/exist/apps/public-repo/public/templating-1.1.0.xar -O 001.xar
38+
39+
40+
# Install
41+
- name: Start exist-ci containers
42+
run: |
43+
docker run -dit -p 8080:8080 -v ${{ github.workspace }}/target:/exist/autodeploy \
44+
--name exist --rm --health-interval=1s --health-start-period=1s \
45+
duncdrum/existdb:${{ matrix.exist-version }}
46+
47+
- name: wait for install to finish
48+
timeout-minutes: 5
49+
run: |
50+
while ! docker logs exist | grep -q "Server has started"; \
51+
do sleep 4s; \
52+
done
53+
54+
# Test
55+
- name: Run smoke test
56+
run: bats --tap src/test/bats/*.bats
57+
58+
- name: Run e2e test
59+
run: npx cypress run
60+
61+
# - name: Test
62+
# env:
63+
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
64+
# run: mvn verify

.travis.yml

-12
This file was deleted.

README.md

+26-18
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,41 @@
11
# eXist-db Function Documentation Browser App
2-
[![Build Status](https://travis-ci.com/eXist-db/function-documentation.svg?branch=master)](https://travis-ci.com/eXist-db/function-documentation)
3-
[![eXist-db version](https://img.shields.io/badge/eXist_db-4.0.0-blue.svg)](http://www.exist-db.org/exist/apps/homepage/index.html)
2+
3+
[![CI](https://github.com/eXist-db/function-documentation/actions/workflows/ci.yml/badge.svg)](https://github.com/eXist-db/function-documentation/actions/workflows/ci.yml)
4+
[![eXist-db version](https://img.shields.io/badge/eXist_db-6.2.0-blue.svg)](http://www.exist-db.org/exist/apps/homepage/index.html)
45

56
<img src="src/main/xar-resources/icon.png" align="left" width="15%"/>
67

7-
This repository contains the function documentation borwser app for the [eXist-db native XML database](http://www.exist-db.org).
8+
This repository contains the function documentation browser app for the [eXist-db native XML database](http://www.exist-db.org).
89

910
## Dependencies
10-
- [Maven](https://maven.apache.org): 3.5.2
11-
- [eXist-db](http://exist-db.org): 4.0.0
11+
12+
- [Maven](https://maven.apache.org): `3.5.2`
13+
- [eXist-db](http://exist-db.org): `6.2.0`
1214

1315
## Installation
14-
- Just go to your eXist server's Dashboard and select Function Documentation.
15-
- Update to the latest release via the eXist-db package manager or via the eXist-db.org public app repository at [http://exist-db.org/exist/apps/public-repo/](http://exist-db.org/exist/apps/public-repo/).
16+
17+
- Just go to your eXist server's Dashboard and select Function Documentation.
18+
- Update to the latest release via the eXist-db package manager or via the eXist-db.org public app repository at [http://exist-db.org/exist/apps/public-repo/](http://exist-db.org/exist/apps/public-repo/).
1619

1720
## Building from source
18-
1. Clone the repository to your system:
19-
```bash
20-
$ git clone https://github.com/exist-db/function-documentation.git
21-
```
2221

23-
2. Build the function documentation application:
24-
```bash
25-
$ cd function-documentation
26-
$ mvn clean package
27-
```
28-
The compiled `.xar` file is located in the `/target` directory
22+
1. Clone the repository to your system:
23+
24+
```bash
25+
git clone https://github.com/exist-db/function-documentation.git
26+
```
2927

30-
3. Install this file via the Dashboard > Package Manager.
28+
2. Build the function documentation application:
29+
30+
```bash
31+
cd function-documentation
32+
mvn clean package
33+
```
34+
35+
The compiled `.xar` file is located in the `/target` directory
36+
37+
3. Install this file via the Dashboard > Package Manager.
3138

3239
## License
40+
3341
LGPLv2.1 [eXist-db.org](http://exist-db.org/exist/apps/homepage/index.html)

cypress.config.js

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const { defineConfig } = require('cypress')
2+
3+
module.exports = defineConfig({
4+
fileServerFolder: 'src/main/xar-resources',
5+
fixturesFolder: 'src/test/cypress/fixtures',
6+
screenshotsFolder: 'src/test/cypress/screenshots',
7+
videosFolder: 'src/test/cypress/videos',
8+
e2e: {
9+
// We've imported your old cypress plugins here.
10+
// You may want to clean this up later by importing these.
11+
setupNodeEvents(on, config) {
12+
return require('./src/test/cypress/plugins/index.js')(on, config)
13+
},
14+
baseUrl: 'http://localhost:8080/exist/apps/fundocs/',
15+
excludeSpecPattern: 'src/test/cypress/integration/examples/*.js',
16+
specPattern: 'src/test/cypress/integration/**/*.{js,jsx,ts,tsx}',
17+
supportFile: 'src/test/cypress/support/index.js',
18+
},
19+
})

gulpfile.js

+9-10
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,19 @@ const paths = {
2828
},
2929
vendor: {
3030
scripts: [
31-
"src/main/xar-resources/resources/vendor/scripts/*",
32-
"node_modules/bootstrap/dist/js/bootstrap.min.*",
33-
"node_modules/jquery/dist/jquery.min.*",
34-
"node_modules/prismjs/prism.js",
35-
"node_modules/prismjs/components/prism-xquery.min.js",
36-
"node_modules/prismjs/components/prism-java.min.js",
37-
"node_modules/marked/lib/marked.js"
31+
"src/main/xar-resources/resources/scripts/*",
32+
"node_modules/bootstrap/dist/js/bootstrap.min.*",
33+
"node_modules/@popperjs/core/dist/umd/popper.min.*",
34+
"node_modules/@highlightjs/cdn-assets/highlight.min.js",
35+
"node_modules/@highlightjs/cdn-assets/languages/xquery.min.js",
36+
"node_modules/zero-md/dist/index.min.js"
3837
],
3938
styles: [
40-
"src/main/xar-resources/resources/vendor/styles/*",
39+
"src/main/xar-resources/resources/css/*",
4140
"node_modules/bootstrap/dist/css/bootstrap.min.*",
42-
// 'node_modules/prismjs/themes/*.css'
41+
"node_modules/@highlightjs/cdn-assets/styles/atom-one-dark.min.css"
4342
],
44-
fonts: ["node_modules/bootstrap/dist/fonts/*"],
43+
fonts: ["node_modules/@neos21/bootstrap3-glyphicons/dist/fonts/*"],
4544
},
4645
};
4746

0 commit comments

Comments
 (0)