Add util that compares the responses from marketplace live and staging #94
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
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
name: Marketplace build | |
on: | |
push: | |
branches: [ marketplace ] | |
pull_request: | |
branches: [ marketplace ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v2 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: Build api | |
run: ./mvnw --batch-mode clean install -Padoptium | |
- name: Build app | |
run: | | |
cd marketplace/ | |
../mvnw --batch-mode clean install | |
- name: Upload yaml schema | |
uses: actions/[email protected] | |
with: | |
name: schema.yaml | |
path: marketplace/adoptium-marketplace-schema/target/generated/openapi.yaml | |
- name: Upload json schema | |
uses: actions/[email protected] | |
with: | |
name: schema.json | |
path: marketplace/adoptium-marketplace-schema/target/generated/openapi.json | |
- name: Upload example data | |
uses: actions/[email protected] | |
with: | |
name: example.json | |
path: marketplace/adoptium-marketplace-schema-tests/src/test/resources/net/adoptium/marketplace/schema/example.json |