File tree 3 files changed +16
-6
lines changed
3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,21 @@ jobs:
22
22
23
23
steps :
24
24
- uses : actions/checkout@v4
25
+
26
+ # extract repository name
27
+ - run : echo "REPO_NAME=${GITHUB_REPOSITORY}" >> $GITHUB_ENV
28
+
25
29
# extract branch name
26
30
- if : github.event_name == 'pull_request'
27
31
run : echo "BRANCH_NAME=${GITHUB_HEAD_REF}" >> $GITHUB_ENV
32
+
28
33
- if : github.event_name != 'pull_request'
29
34
run : echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
30
35
36
+ # print repository name
37
+ - name : Get repository name
38
+ run : echo 'The repository name is' $REPO_NAME
39
+
31
40
# print branch name
32
41
- name : Get branch name
33
42
run : echo 'The branch name is' $BRANCH_NAME
45
54
- run : npm pack .
46
55
- run : npm install -g solid-server-*.tgz
47
56
# Run the Solid test-suite
48
- - run : bash test/surface/run-solid-test-suite.sh $BRANCH_NAME
57
+ - run : bash test/surface/run-solid-test-suite.sh $BRANCH_NAME $REPO_NAME
49
58
50
59
# TODO: The pipeline should automate publication to npm, so that the docker build gets the correct version
51
60
# This job will only dockerize solid-server@latest / solid-server@<tag-name> from npmjs.com!
Original file line number Diff line number Diff line change 1
1
FROM node:latest
2
2
ARG BRANCH=main
3
+ ARG REPO=nodeSolidServer/node-solid-server
3
4
RUN echo Testing branch ${BRANCH} of NSS
4
- RUN git clone https://github.com/nodeSolidServer/node-solid-server
5
+ RUN git clone https://github.com/${REPO}
5
6
WORKDIR node-solid-server
6
7
RUN git checkout ${BRANCH}
7
8
RUN git status
Original file line number Diff line number Diff line change 3
3
4
4
function setup {
5
5
echo Branch name: $1
6
+ echo Repoitory: $2
6
7
docker network create testnet
7
- docker build -t server --build-arg BRANCH=$1 test/surface/docker/server
8
+ docker build -t server --build-arg BRANCH=$1 --build-arg REPO= $2 test/surface/docker/server
8
9
docker build -t cookie test/surface/docker/cookie
9
10
docker run -d --env-file test/surface/server-env.list --name server --network=testnet -v ` pwd` :/travis -w /node-solid-server server /travis/bin/solid-test start --config-file /node-solid-server/config.json
10
11
docker run -d --env-file test/surface/thirdparty-env.list --name thirdparty --network=testnet -v ` pwd` /test/surface:/surface server /node-solid-server/bin/solid-test start --config-file /surface/thirdparty-config.json
@@ -32,7 +33,7 @@ function waitForNss {
32
33
33
34
function runTests {
34
35
docker pull solidtestsuite/$1 :$2
35
-
36
+
36
37
echo " Running $1 against server with cookie $COOKIE_server "
37
38
docker run --rm --network=testnet \
38
39
--env COOKIE=" $COOKIE_server " \
@@ -54,7 +55,7 @@ function runTestsFromGit {
54
55
55
56
# ...
56
57
teardown || true
57
- setup $1
58
+ setup $1 $2
58
59
waitForNss server
59
60
runTests webid-provider-tests v2.0.3
60
61
runTestsFromGit solid-crud-tests v6.0.0-issue#1743
@@ -72,4 +73,3 @@ teardown
72
73
# --env COOKIE_BOB="$COOKIE_thirdparty" \
73
74
# --env-file test/surface/web-access-control-tests-env.list \
74
75
# solidtestsuite/web-access-control-tests:latest /bin/bash
75
-
You can’t perform that action at this time.
0 commit comments