-
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.
Set SPECTRAL_DSN environment from JS instead of end-user workflow fil…
…e (#12) * Update index.js * Update README.md * Update main.yml * Update README.md * Update README.md * Update CI.yml * Update main.yml * Update CI.yml
- Loading branch information
1 parent
a5026d7
commit ab90f8a
Showing
4 changed files
with
30 additions
and
39 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
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,69 +1,66 @@ | ||
name: CI | ||
name: CI (example) | ||
|
||
# Controls when the workflow will run | ||
on: [push, workflow_dispatch] | ||
|
||
env: | ||
SPECTRAL_DSN: ${{ secrets.SPECTRAL_DSN }} | ||
|
||
jobs: | ||
ubuntu-ci: | ||
name: Spectral ubuntu CI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install and run Spectral CI | ||
uses: spectralops/spectral-github-action@v3 | ||
uses: spectralops/spectral-github-action@v4 | ||
with: | ||
spectral-dsn: ${{ env.SPECTRAL_DSN }} | ||
spectral-dsn: ${{ secrets.SPECTRAL_DSN }} | ||
spectral-args: scan --ok | ||
ubuntu-audit: | ||
name: Spectral ubuntu audit | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install and run Spectral Audit | ||
uses: spectralops/spectral-github-action@v3 | ||
uses: spectralops/spectral-github-action@v4 | ||
with: | ||
spectral-dsn: ${{ env.SPECTRAL_DSN }} | ||
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@v3 | ||
- name: Install and run Spectral CI | ||
uses: spectralops/spectral-github-action@v3 | ||
uses: spectralops/spectral-github-action@v4 | ||
with: | ||
spectral-dsn: ${{ env.SPECTRAL_DSN }} | ||
spectral-dsn: ${{ secrets.SPECTRAL_DSN }} | ||
spectral-args: scan --ok | ||
macos-audit: | ||
name: Spectral macos audit | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install and run Spectral Audit | ||
uses: spectralops/spectral-github-action@v3 | ||
uses: spectralops/spectral-github-action@v4 | ||
with: | ||
spectral-dsn: ${{ env.SPECTRAL_DSN }} | ||
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@v3 | ||
- name: Install and run Spectral CI | ||
uses: spectralops/spectral-github-action@v3 | ||
uses: spectralops/spectral-github-action@v4 | ||
with: | ||
spectral-dsn: ${{ env.SPECTRAL_DSN }} | ||
spectral-dsn: ${{ secrets.SPECTRAL_DSN }} | ||
spectral-args: scan --ok | ||
windows-audit: | ||
name: Spectral windows audit | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install and run Spectral Audit | ||
uses: spectralops/spectral-github-action@v3 | ||
uses: spectralops/spectral-github-action@v4 | ||
with: | ||
spectral-dsn: ${{ env.SPECTRAL_DSN }} | ||
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