diff --git a/.github/workflows/breaking-changes.yaml b/.github/workflows/breaking-changes.yaml new file mode 100644 index 0000000..029170c --- /dev/null +++ b/.github/workflows/breaking-changes.yaml @@ -0,0 +1,17 @@ +name: detect-breaking-changes +on: + pull_request: + branches: [ "main" ] +jobs: + oasdiff: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + + - run: git fetch --depth=1 origin ${{ github.base_ref }} + + - uses: oasdiff/oasdiff-action/breaking@v0.0.40-beta.2 + with: + base: 'origin/${{ github.base_ref }}:simple.yaml' + revision: 'HEAD:simple.yaml' + fail-on: WARN diff --git a/simple.yaml b/simple.yaml index b635d93..632382a 100644 --- a/simple.yaml +++ b/simple.yaml @@ -29,8 +29,11 @@ components: readOnly: true name: type: string + email: + type: string required: - name + - email paths: /api/v1.0/groups: post: