Skip to content

Commit a15b9a9

Browse files
committed
ci(conformance): add matrix auth testing support
Assisted-by: Tern
1 parent 1c04553 commit a15b9a9

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.github/workflows/conformance.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
jobs:
1010
conformance:
1111
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
auth: [none, htpasswd]
15+
fail-fast: false
1216

1317
steps:
1418
- name: Checkout
@@ -31,6 +35,21 @@ jobs:
3135
cd distribution-spec/conformance
3236
go test -c
3337
38+
- name: Setup auth
39+
run: |
40+
case "${{ matrix.auth }}" in
41+
none)
42+
echo "running with no authentication"
43+
;;
44+
htpasswd)
45+
htpasswd -Bbc .htpasswd testuser testpass
46+
echo "AUTH__MODE=htpasswd" >> $GITHUB_ENV
47+
echo "AUTH__HTPASSWD__FILE=.htpasswd" >> $GITHUB_ENV
48+
echo "OCI_USERNAME=testuser" >> $GITHUB_ENV
49+
echo "OCI_PASSWORD=testpass" >> $GITHUB_ENV
50+
;;
51+
esac
52+
3453
- name: Start sorcerer server
3554
run: |
3655
./sorcerer &
@@ -63,7 +82,7 @@ jobs:
6382
if: always()
6483
uses: actions/upload-artifact@v4
6584
with:
66-
name: conformance-results
85+
name: conformance-results-${{ matrix.auth }}
6786
path: |
6887
distribution-spec/conformance/report.html
6988
distribution-spec/conformance/junit.xml

0 commit comments

Comments
 (0)