-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7b09f75
commit 3948094
Showing
1 changed file
with
13 additions
and
17 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,26 +1,22 @@ | ||
name: optic | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
- "main" | ||
|
||
jobs: | ||
diff-all: | ||
run: | ||
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 | ||
|
||
- name: Install Optic | ||
run: npm install --location global @useoptic/optic | ||
|
||
- name: Run Optic | ||
env: | ||
OPTIC_TOKEN: ${{ secrets.OPTIC_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: optic run |