File tree Expand file tree Collapse file tree 3 files changed +20
-4
lines changed Expand file tree Collapse file tree 3 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 2121
2222 steps :
2323 - uses : actions/checkout@v2
24+ # extract branch name
25+ - if : github.event_name == 'pull_request'
26+ run : echo "BRANCH_NAME=${GITHUB_HEAD_REF}" >> $GITHUB_ENV
27+ - if : github.event_name != 'pull_request'
28+ run : echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
29+
30+ # print branch name
31+ - name : Get branch name
32+ run : echo 'The branch name is' $BRANCH_NAME
33+
2434 - name : Use Node.js ${{ matrix.node-version }}
2535 uses : actions/setup-node@v1
2636 with :
3444 - run : npm pack .
3545 - run : npm install -g solid-server-*.tgz
3646 # Run the Solid test-suite
37- - run : bash test/surface/run-solid-test-suite.sh
47+ - run : bash test/surface/run-solid-test-suite.sh $BRANCH_NAME
Original file line number Diff line number Diff line change 11FROM node:latest
2+ ARG BRANCH=main
3+ RUN echo Testing branch ${BRANCH} of NSS
24RUN git clone https://github.com/solid/node-solid-server
35WORKDIR node-solid-server
4- RUN git checkout main
6+ RUN git checkout ${BRANCH}
7+ RUN git status
58RUN npm install
69RUN openssl req -new -x509 -days 365 -nodes \
710 -out ./server.cert \
Original file line number Diff line number Diff line change 11#! /bin/bash
22set -e
33
4+
45function setup {
6+ echo Branch name: $1
57 docker network create testnet
6- docker build -t server test/surface/docker/server
8+ docker build -t server --build-arg BRANCH= $1 test/surface/docker/server
79 docker build -t cookie test/surface/docker/cookie
810 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
911 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
@@ -42,7 +44,7 @@ function runTests {
4244
4345# ...
4446teardown || true
45- setup
47+ setup $1
4648waitForNss server
4749runTests webid-provider-tests v2.0.3
4850runTests solid-crud-tests nss-skips
@@ -59,3 +61,4 @@ teardown
5961# --env COOKIE_BOB="$COOKIE_thirdparty" \
6062# --env-file test/surface/web-access-control-tests-env.list \
6163# solidtestsuite/web-access-control-tests:latest /bin/bash
64+
You can’t perform that action at this time.
0 commit comments