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
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on:
push:
branches:
- main
pull_request:

jobs:
build:
name: Build and Test
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
jdk: [1.8, 9, 11, 15]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.jdk }}
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Maven Build
run: mvn -V -B -DskipTests=true install
- name: Maven Test
run: mvn -B verify
# - name: Maven Code Coverage
# if: ${{ github.ref == 'refs/heads/main' && matrix.jdk == '1.8' && matrix.os == 'ubuntu-latest' }}
# run: mvn -B jacoco:report coveralls:report -DrepoToken=${{ secrets.COVERALLS_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
target/
.DS_Store
*.iml
.idea/
.classpath
Expand Down
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![CI](https://github.com/eXist-db/crypto-exist-java-lib/workflows/CI/badge.svg)](https://github.com/eXist-db/crypto-exist-java-lib/actions?query=workflow%3ACI)

# eXist-db implementation for EXPath Cryptographic Module

This is an eXist-db implementation of the [EXPath HTTP Crypto Module specification](http://expath.org/spec/crypto).
Expand Down Expand Up @@ -35,12 +37,12 @@ For the latest version of the specification for this module see [http://expath.o

The implementation follows this specification.

### Examples of usage

For examples of usage, see [this folder in github](src/test/java/org/expath/exist/crypto/xquery/) or [this collection](/apps/expath-crypto/tests/unit-tests) when this library is installed in eXist.

### Unit Tests

Unit Tests can be found in [this folder in github](src/test/java/org/expath/exist/crypto/xquery/) or in [this collection](/apps/expath-crypto/tests/unit-tests) when this library is installed in eXist.
Unit Tests use [XQSuite](https://exist-db.org/exist/apps/doc/xqsuite) and can be found in the [src/test/xquery/crypto folder](src/test/xquery/crypto/).

When this library is installed in eXist, to get a simple test runner, showing description and status (passed / failed) for each unit test, go [here](/apps/expath-crypto/tests/test-plan.xq).
To run tests:

```bash
$ mvn validate
```
25 changes: 25 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
<crypto.java.lib.version>1.8.0</crypto.java.lib.version>
<exist.version>5.3.0</exist.version>
<crypto.module.ns>http://expath.org/ns/crypto</crypto.module.ns>
<crypto.module.java.class>org.expath.exist.crypto.ExistExpathCryptoModule</crypto.module.java.class>
<package-abbrev>crypto</package-abbrev>
<package-name>${crypto.module.ns}</package-name>
</properties>
Expand Down Expand Up @@ -113,6 +114,17 @@
</dependencies>

<build>
<testResources>
<testResource>
<directory>src/test/resources</directory>
<filtering>false</filtering>
</testResource>
<testResource>
<directory>src/test/resources-filtered</directory>
<filtering>true</filtering>
</testResource>
</testResources>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -137,6 +149,19 @@
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.0.0-M5</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.ruleoftech</groupId>
<artifactId>markdown-page-generator-plugin</artifactId>
Expand Down
946 changes: 0 additions & 946 deletions src/test/java/org/expath/exist/crypto/test-plan.xml

This file was deleted.

51 changes: 0 additions & 51 deletions src/test/java/org/expath/exist/crypto/xquery/AwsRestRequest.xq

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading