-
Notifications
You must be signed in to change notification settings - Fork 9
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 #4 from SpectralOps/install-and-run
Install and run spectral in a single command
- Loading branch information
Showing
6 changed files
with
94 additions
and
28 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,42 +1,69 @@ | ||
name: CI | ||
|
||
# Controls when the workflow will run | ||
# Controls when the workflow will run | ||
on: [push, workflow_dispatch] | ||
|
||
env: | ||
SPECTRAL_DSN: ${{ secrets.SPECTRAL_DSN }} | ||
|
||
jobs: | ||
ubuntu: | ||
name: Spectral ubuntu | ||
ubuntu-ci: | ||
name: Spectral ubuntu CI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Spectral | ||
uses: spectralops/spectral-github-action@v1 | ||
- name: Install and run Spectral CI | ||
uses: spectralops/spectral-github-action@v2 | ||
with: | ||
spectral-dsn: ${{ secrets.SPECTRAL_DSN }} | ||
- name: Spectral Scan | ||
run: spectral scan | ||
macOS: | ||
name: Spectral macOS | ||
runs-on: macos-latest | ||
spectral-args: scan --ok | ||
ubuntu-audit: | ||
name: Spectral ubuntu audit | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install and run Spectral Audit | ||
uses: spectralops/spectral-github-action@v2 | ||
with: | ||
spectral-dsn: ${{ secrets.SPECTRAL_DSN }} | ||
spectral-args: github -k repo -t ${{ secrets.MY_GITHUB_TOKEN }} https://github.com/SpectralOps/spectral-github-action --include-tags base,audit --ok | ||
macos-ci: | ||
name: Spectral macos CI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install and run Spectral CI | ||
uses: spectralops/spectral-github-action@v2 | ||
with: | ||
spectral-dsn: ${{ secrets.SPECTRAL_DSN }} | ||
spectral-args: scan --ok | ||
macos-audit: | ||
name: Spectral macos audit | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install and run Spectral Audit | ||
uses: spectralops/spectral-github-action@v2 | ||
with: | ||
spectral-dsn: ${{ secrets.SPECTRAL_DSN }} | ||
spectral-args: github -k repo -t ${{ secrets.MY_GITHUB_TOKEN }} https://github.com/SpectralOps/spectral-github-action --include-tags base,audit --ok | ||
windows-ci: | ||
name: Spectral windows CI | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Spectral | ||
uses: spectralops/spectral-github-action@v1 | ||
- name: Install and run Spectral CI | ||
uses: spectralops/spectral-github-action@v2 | ||
with: | ||
spectral-dsn: ${{ secrets.SPECTRAL_DSN }} | ||
- name: Spectral Scan | ||
run: spectral scan | ||
windows: | ||
name: Spectral windows | ||
spectral-args: scan --ok | ||
windows-audit: | ||
name: Spectral windows audit | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Spectral | ||
uses: spectralops/spectral-github-action@v1 | ||
- name: Install and run Spectral Audit | ||
uses: spectralops/spectral-github-action@v2 | ||
with: | ||
spectral-dsn: ${{ secrets.SPECTRAL_DSN }} | ||
- name: Spectral Scan | ||
run: spectral.exe scan | ||
spectral-args: github -k repo -t ${{ secrets.MY_GITHUB_TOKEN }} https://github.com/SpectralOps/spectral-github-action --include-tags base,audit --ok |
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 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 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
|
@@ -20,4 +20,4 @@ | |
"@actions/io": "^1.1.1", | ||
"@actions/tool-cache": "^1.7.1" | ||
} | ||
} | ||
} |