Skip to content

Commit

Permalink
set up github action
Browse files Browse the repository at this point in the history
  • Loading branch information
hmottestad committed Nov 7, 2023
1 parent 0053379 commit 88afcd2
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/pr-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
20 changes: 20 additions & 0 deletions e2e/README.md
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.

0 comments on commit 88afcd2

Please sign in to comment.