forked from bowtie-json-schema/bowtie
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (53 loc) · 1.57 KB
/
report.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Test Suite Report
on:
release:
types: [published]
workflow_dispatch:
schedule:
# Daily at 2:15
- cron: "15 2 * * *"
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version:
- draft2020-12
- draft2019-09
- draft7
- draft6
- draft4
- draft3
steps:
# Ha ha, without me, reports sometimes claim they're running out of disk
# space... See e.g. https://github.com/actions/runner-images/issues/2840
- name: Free up disk space
run: |
sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/share/boost "$AGENT_TOOLSDIRECTORY"
# FIXME: we can skip checking out if we are able to list all images in
# the image repository
- uses: actions/checkout@v4
- name: Install Bowtie
uses: ./
- name: Generate the Report
run: |
bowtie suite $(find implementations/ -mindepth 1 -maxdepth 1 -type d | sed 's/implementations\//-i /') https://github.com/json-schema-org/JSON-Schema-Test-Suite/tree/main/tests/${{ matrix.version }} | tee ${{ matrix.version }}.json | bowtie badges badges
- uses: actions/upload-artifact@v3
with:
name: report
path: |
${{ matrix.version }}.json
badges/
deploy-frontend:
needs: test
uses: ./.github/workflows/deploy-frontend.yml
with:
report_artifact_in_scope: true