mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
test: Add github actions for conformance test harness
This commit is contained in:
parent
51b7946dac
commit
13c8317d31
39
.github/workflows/schedule.yml
vendored
Normal file
39
.github/workflows/schedule.yml
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
name: Conformance test harness
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '23 5 * * *'
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- test/conformance
|
||||||
|
jobs:
|
||||||
|
conformance:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 10
|
||||||
|
steps:
|
||||||
|
- name: Use Node.js 16.x
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: 16.x
|
||||||
|
- name: Check out the project
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Install dependencies and run build scripts
|
||||||
|
run: npm ci
|
||||||
|
- name: Start the server in the background
|
||||||
|
run: npm start &
|
||||||
|
- name: Create the necessary folders
|
||||||
|
run: mkdir -p reports/css
|
||||||
|
- name: Pull the conformance harness docker
|
||||||
|
run: docker pull solidconformancetestbeta/conformance-test-harness
|
||||||
|
- name: Wait until the server has started
|
||||||
|
run: |
|
||||||
|
until $(curl --output /dev/null --silent --head --fail -k http://localhost:3000/); do
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
- name: Run the test harness
|
||||||
|
run: >
|
||||||
|
docker run -i --rm
|
||||||
|
-v "$(pwd)"/reports/css:/reports
|
||||||
|
--env-file=./test/deploy/conformance.env
|
||||||
|
--network="host" solidconformancetestbeta/conformance-test-harness
|
||||||
|
--output=/reports --target=css
|
11
test/deploy/conformance.env
Normal file
11
test/deploy/conformance.env
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
SOLID_IDENTITY_PROVIDER=http://localhost:3000/idp
|
||||||
|
USER_REGISTRATION_ENDPOINT=http://localhost:3000/idp/register
|
||||||
|
USERS_ALICE_WEBID=http://localhost:3000/alice/profile/card#me
|
||||||
|
USERS_ALICE_USERNAME=alice@alice.mail
|
||||||
|
USERS_ALICE_PASSWORD=pass1234
|
||||||
|
USERS_BOB_WEBID=http://localhost:3000/bob/profile/card#me
|
||||||
|
USERS_BOB_USERNAME=bob@bob.mail
|
||||||
|
USERS_BOB_PASSWORD=pass1234
|
||||||
|
RESOURCE_SERVER_ROOT=http://localhost:3000
|
||||||
|
TEST_CONTAINER=/alice/
|
||||||
|
quarkus.log.category."ResultLogger".level=INFO
|
Loading…
x
Reference in New Issue
Block a user