-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0053379
commit 88afcd2
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -124,6 +124,31 @@ jobs: | |
repo: eclipse/rdf4j | ||
workflow_id: ${{ github.run_id }} | ||
access_token: ${{ github.token }} | ||
e2e: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Cache local Maven repository | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-jdk11-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-jdk11-maven- | ||
- name: Run end-to-end tests of RDF4J Server and Workbench | ||
working-directory: ./e2e | ||
run: ./run.sh | ||
- name: Cancel workflow on failure | ||
uses: vishnudxb/[email protected] | ||
if: failure() | ||
with: | ||
repo: eclipse/rdf4j | ||
workflow_id: ${{ github.run_id }} | ||
access_token: ${{ github.token }} | ||
copyright-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# End-to-end tests | ||
|
||
This directory contains end-to-end tests for the project. These tests use docker to run the RDF4J server and workbench. | ||
|
||
The tests are written using Microsoft Playwright and interact with the server and workbench using the browser. | ||
|
||
## Running the tests | ||
|
||
Requirements: | ||
- docker | ||
- java | ||
- maven | ||
- npm | ||
- npx | ||
|
||
The tests can be run using the `run.sh` script. This script will build the project, start the server and workbench and run the tests. | ||
|
||
To run the tests interactively use `npx playwright test --ui` | ||
|
||
The RDF4J server and workbench can be started independently using the `run.sh` script in the `docker` directory. |