-
Notifications
You must be signed in to change notification settings - Fork 14
45 lines (41 loc) · 1.19 KB
/
review.yaml
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
name: review
on:
pull_request:
branches:
- main
- feat/abac
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: bufbuild/buf-setup-action@v1
with:
version: "1.15.1"
- uses: bufbuild/buf-lint-action@v1
- uses: bufbuild/buf-breaking-action@v1
with:
# The 'main' branch of the GitHub repository that defines the module.
against: "https://github.com/${GITHUB_REPOSITORY}.git#branch=${GITHUB_BASE_REF}"
- run: buf format -d --exit-code
diff-openapi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: bufbuild/buf-setup-action@v1
with:
version: "1.15.1"
- name: "Generate OpenAPI & Diff"
run: |
./buf.gen.yaml
./scripts/update_swagger.sh docs/openapiv2/apidocs.swagger.json
git diff --text --exit-code docs/openapiv2/apidocs.swagger.json
validate-openapi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: char0n/swagger-editor-validate@v1
with:
definition-file: ./docs/openapiv2/apidocs.swagger.json