Skip to content

Commit

Permalink
test: add live-test for certificate chain
Browse files Browse the repository at this point in the history
Closes #3
  • Loading branch information
coderbyheart committed Jul 15, 2024
1 parent f1bf0dd commit dac65bf
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/live-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,19 @@ jobs:
- name: fetch TLS certificate
run: curl --fail-with-body -v ${{ matrix.protocol }}://${{ env.HOSTNAME }}/${{ env.HOSTNAME }}.crt

live-test:
fetch-cert-chain:
runs-on: ubuntu-latest

# needs:
# - fetch-cert
strategy:
matrix:
protocol: [http, https]

steps:
- name: fetch TLS certificate chain
run: curl --fail-with-body -v ${{ matrix.protocol }}://${{ env.HOSTNAME }}/${{ env.HOSTNAME }}.chain.pem

live-test:
runs-on: ubuntu-latest

strategy:
matrix:
Expand Down Expand Up @@ -63,13 +71,12 @@ jobs:
website:
runs-on: ubuntu-latest

steps:
- name: HTTP
run: |
curl --fail-with-body -v http://mqtt.nordicsemi.academy/ > http.html
diff http.html docs/index.html
strategy:
matrix:
protocol: [http, https]

- name: HTTPs
steps:
- name: ${{ matrix.protocol }}
run: |
curl --fail-with-body -v https://mqtt.nordicsemi.academy/ > https.html
diff https.html docs/index.html
curl --fail-with-body -v ${{ matrix.protocol }}://${{ env.HOSTNAME }}/ > ${{ matrix.protocol }}.html
diff ${{ matrix.protocol }}.html docs/index.html

0 comments on commit dac65bf

Please sign in to comment.