Skip to content

Commit

Permalink
add report
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammed90 committed Apr 18, 2024
1 parent 221d90a commit e8327d5
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ on:

jobs:
test:
permissions:
checks: write
strategy:
# Default is true, cancels jobs for other platforms in the matrix if one fails
fail-fast: false
Expand Down Expand Up @@ -140,7 +142,15 @@ jobs:
- name: Run tests with Hurl
if: matrix.os == 'linux'
run: |
find . -name *.hurl -exec hurl --test --color {} \;
mkdir hurl-report
find . -name *.hurl -exec hurl --test --report-junit hurl-report/junit.xml --color {} \;
- name: Publish Test Results
if: matrix.os == 'linux'
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: |
hurl-results/junit.xml
# Relevant step if we reinvestigate publishing test/coverage reports
# - name: Prepare coverage reports
Expand Down
25 changes: 25 additions & 0 deletions caddytest/spec/http/headers/spec.hurl
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Configure Caddy
POST http://localhost:2019/load
User-Agent: hurl/ci
Content-Type: text/caddyfile
```
{
skip_install_trust
http_port 9080
https_port 9443
local_certs
}
localhost {
header {
-Server
defer
}
}
```

GET https://localhost:9443
[Options]
insecure: true
HTTP 200
[Asserts]
header "Server" == ""

0 comments on commit e8327d5

Please sign in to comment.