Update sbt-wartremover, wartremover to 3.2.1 #140
Workflow file for this run
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: | |
- '*' | |
pull_request: | |
branches: | |
- main | |
jobs: | |
bowtie-report: | |
runs-on: blacksmith-2vcpu-ubuntu-2204 | |
steps: | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install Bowtie | |
run: pip install bowtie-json-schema==2023.8.16 | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Coursier cache | |
uses: useblacksmith/coursier-cache-action@v6 | |
- uses: coursier/setup-action@v1 | |
with: | |
jvm: zulu:11.0.10 | |
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 JSON-Schema-Test-Suite/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@v4 | |
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 |