Skip to content

Commit

Permalink
deploy multi-sdk results to gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
finn-tbd committed Nov 6, 2023
1 parent a7a992e commit 743bd59
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
on: [push]
jobs:
pages:
permissions:
pages: write
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- name: run for all SDKs
run: go run ./cmd/web5-spec-test many sdks/*
- name: deploy GitHub Pages
uses: actions/deploy-pages@v2
2 changes: 1 addition & 1 deletion .github/workflows/self-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- name: self test
run: go run ./cmd/web5-spec-test sdks/$SDK
run: go run ./cmd/web5-spec-test one sdks/$SDK
env:
SDK: ${{ matrix.SDK }}
8 changes: 4 additions & 4 deletions reports/report-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ <h1>web5 spec compliance report</h1>
{{ range $category, $tests := .Tests }}
<h2>{{ $category }}</h2>
<table>
<tr><th>test</th>{{ range $tests }}<th>{{ . }}</th>{{ end }}</tr>
{{ range $_, $report := $.Reports }}
<tr><th>test</th>{{ range $.Reports }}<th><a href="{{ .TestServerID.Url }}">{{ .TestServerID.Name }}</a></th>{{ end }}</tr>
{{ range $_, $test := $tests }}
<tr>
<td><a href="{{ $report.TestServerID.Url }}">{{ $report.TestServerID.Name }}</a></td>
{{ range $_, $test := $tests }}<td>{{ index (index $report.Results $category) $test | getEmoji }}</td>{{ end }}
<td>{{ . }}</td>
{{ range $.Reports }}<td>{{ index (index .Results $category) $test | getEmoji }}</td>{{ end }}
</tr>
{{ end }}
</table>
Expand Down

0 comments on commit 743bd59

Please sign in to comment.