Merge pull request #3 from guylev008/master #61
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
name: SpectralOps | |
on: [push] | |
env: | |
SPECTRAL_DSN: ${{ secrets.SPECTRAL_DSN }} | |
jobs: | |
build: | |
name: Spectral | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Preflight | |
uses: SpectralOps/setup-preflight-action@v1 | |
with: | |
preflight-version: "1.1.4" | |
- name: Spectral Install | |
run: curl -L "https://get.spectralops.io/latest/x/sh?dsn=$SPECTRAL_DSN" | preflight run https://sigs.spectralops.io/spectral | |
- name: Spectral Scan | |
run: $HOME/.spectral/spectral scan |