-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from opticdev/chore/enable-ci-2
chore: ci take 2
- Loading branch information
Showing
6 changed files
with
81 additions
and
99 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: bookstore-api-optic | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- apps/bookstore-api/** | ||
pull_request: | ||
paths: | ||
- apps/bookstore-api/** | ||
workflow_call: | ||
|
||
defaults: | ||
run: | ||
working-directory: apps/bookstore-api | ||
|
||
jobs: | ||
diff-all: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Generate Spec | ||
run: yarn generate-spec | ||
|
||
- uses: opticdev/action@v1 | ||
with: | ||
# Your Optic Cloud Token | ||
optic_token: ${{ secrets.OPTIC_TOKEN }} | ||
|
||
# A GitHub token with access to create comments on pull requests | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# If true, standard check failures will cause this action to fail. | ||
# If false, standard check failures will show in PR comments and | ||
# in Optic Cloud but will not cause the action to fail | ||
standards_fail: true | ||
|
||
# If you have more than one spec, separate matches with commas | ||
# (openapi.yml,other.yml) | ||
additional_args: --match apps/bookstore-api/openapi.yml | ||
|
||
compare_from_pr: cloud:default | ||
compare_from_push: cloud:default |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: bookstore-optic | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- ci/github-actions-bookstore/** | ||
pull_request: | ||
paths: | ||
- ci/github-actions-bookstore/** | ||
workflow_call: | ||
|
||
jobs: | ||
diff-all: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- uses: opticdev/action@v1 | ||
with: | ||
# Your Optic Cloud Token | ||
optic_token: ${{ secrets.OPTIC_TOKEN }} | ||
|
||
# A GitHub token with access to create comments on pull requests | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# If true, standard check failures will cause this action to fail. | ||
# If false, standard check failures will show in PR comments and | ||
# in Optic Cloud but will not cause the action to fail | ||
standards_fail: true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.github/workflows/bookstore-api-optic.yml |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.github/workflows/bookstore-optic.yml |