Skip to content

Commit

Permalink
fix: github test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto Sero committed Sep 5, 2024
1 parent 90d1fbb commit 03b50c9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker-practice/actions-setup-docker@master
with:
docker_version: 27.2
- run: bash ./test.sh
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14
FROM node:20

# USER node
WORKDIR /app
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.9"
services:
keygen:
image: italia/spid-compliant-certificates:latest
Expand Down
9 changes: 4 additions & 5 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ C="./test/docker-compose.yml"
DEBUG=${DEBUG:-"WARNING"}

function t {
docker-compose -f $C down -v
BINDING=$1 ALG=$2 RAC_COMPARISON=$3 AUTHN_CONTEXT=$4 DEBUG=$DEBUG docker-compose -f $C up --exit-code-from test --no-log-prefix test
# BINDING=$1 ALG=$2 RAC_COMPARISON=$3 AUTHN_CONTEXT=$4 DEBUG=$DEBUG docker-compose -f $C up
docker compose -f $C down -v
BINDING=$1 ALG=$2 RAC_COMPARISON=$3 AUTHN_CONTEXT=$4 DEBUG=$DEBUG docker compose -f $C up --exit-code-from test --no-log-prefix test
}

docker-compose -f $C build -q
docker compose -f $C build -q

# t HTTP-POST sha256 exact 1
t HTTP-Redirect sha512 minimum 1
Expand All @@ -25,4 +24,4 @@ t HTTP-POST sha256 minimum 2
# t HTTP-POST sha256 minimum 3
t HTTP-Redirect sha512 maximum 3

docker-compose -f $C down -v
docker compose -f $C down -v
1 change: 0 additions & 1 deletion test/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.9"
services:
idp:
image: "ghcr.io/italia/spid-sp-test:latest"
Expand Down

0 comments on commit 03b50c9

Please sign in to comment.