Track Boolean values which are constant #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bowtie | |
on: | |
push: | |
branches: | |
- '*' | |
jobs: | |
bowtie-report: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Bowtie | |
run: pip install bowtie-json-schema | |
- uses: actions/checkout@v3 | |
- name: Coursier cache | |
uses: coursier/cache-action@v6 | |
- uses: coursier/setup-action@v1 | |
with: | |
jvm: adopt:8 | |
apps: sbt scala | |
- name: Build Docker image | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: sbt 'set dockerEntrypoint := Seq("/opt/docker/bin/bowtie-validator"); set dockerUpdateLatest := true; Docker/publishLocal' | |
- name: Tag image | |
run: docker tag jsonoid-discovery:latest localhost/jsonoid-discovery | |
- name: Run Bowtie tests | |
run: mkdir bowtie && bowtie suite -V -i localhost/jsonoid-discovery https://github.com/json-schema-org/JSON-Schema-Test-Suite/tree/main/tests/draft2020-12 > bowtie/bowtie.json | |
- name: Generate Bowtie report | |
run: (cd bowtie; bowtie report -b badges bowtie.json) | |
- name: Upload report artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: bowtie-report | |
path: bowtie/ | |
- name: Link Bowtie report and readme | |
run: (cd bowtie; cp ../BOWTIE-README.md ./README.md; ln -sf bowtie-report.html index.html) | |
- name: Publish report to GitHub pages | |
uses: cpina/[email protected] | |
env: | |
SSH_DEPLOY_KEY: ${{ secrets.BOWTIE_SSH_DEPLOY_KEY }} | |
with: | |
source-directory: bowtie | |
destination-github-username: dataunitylab | |
destination-repository-name: jsonoid-bowtie | |
target-branch: gh-pages | |
create-target-branch-if-needed: true |