|
1 | 1 | name: CI |
2 | 2 |
|
3 | | -# Controls when the workflow will run |
| 3 | +# Controls when the workflow will run |
4 | 4 | on: [push, workflow_dispatch] |
5 | 5 |
|
6 | 6 | env: |
7 | 7 | SPECTRAL_DSN: ${{ secrets.SPECTRAL_DSN }} |
8 | 8 |
|
9 | 9 | jobs: |
10 | | - ubuntu: |
11 | | - name: Spectral ubuntu |
| 10 | + ubuntu-ci: |
| 11 | + name: Spectral ubuntu CI |
12 | 12 | runs-on: ubuntu-latest |
13 | 13 | steps: |
14 | 14 | - uses: actions/checkout@v2 |
15 | | - - name: Install Spectral |
16 | | - uses: spectralops/spectral-github-action@v1 |
| 15 | + - name: Install and run Spectral CI |
| 16 | + uses: spectralops/spectral-github-action@v2 |
17 | 17 | with: |
18 | 18 | spectral-dsn: ${{ secrets.SPECTRAL_DSN }} |
19 | | - - name: Spectral Scan |
20 | | - run: spectral scan |
21 | | - macOS: |
22 | | - name: Spectral macOS |
23 | | - runs-on: macos-latest |
| 19 | + spectral-args: scan --ok |
| 20 | + ubuntu-audit: |
| 21 | + name: Spectral ubuntu audit |
| 22 | + runs-on: ubuntu-latest |
| 23 | + steps: |
| 24 | + - uses: actions/checkout@v2 |
| 25 | + - name: Install and run Spectral Audit |
| 26 | + uses: spectralops/spectral-github-action@v2 |
| 27 | + with: |
| 28 | + spectral-dsn: ${{ secrets.SPECTRAL_DSN }} |
| 29 | + spectral-args: github -k repo -t ${{ secrets.MY_GITHUB_TOKEN }} https://github.com/SpectralOps/spectral-github-action --include-tags base,audit --ok |
| 30 | + macos-ci: |
| 31 | + name: Spectral macos CI |
| 32 | + runs-on: ubuntu-latest |
| 33 | + steps: |
| 34 | + - uses: actions/checkout@v2 |
| 35 | + - name: Install and run Spectral CI |
| 36 | + uses: spectralops/spectral-github-action@v2 |
| 37 | + with: |
| 38 | + spectral-dsn: ${{ secrets.SPECTRAL_DSN }} |
| 39 | + spectral-args: scan --ok |
| 40 | + macos-audit: |
| 41 | + name: Spectral macos audit |
| 42 | + runs-on: ubuntu-latest |
| 43 | + steps: |
| 44 | + - uses: actions/checkout@v2 |
| 45 | + - name: Install and run Spectral Audit |
| 46 | + uses: spectralops/spectral-github-action@v2 |
| 47 | + with: |
| 48 | + spectral-dsn: ${{ secrets.SPECTRAL_DSN }} |
| 49 | + spectral-args: github -k repo -t ${{ secrets.MY_GITHUB_TOKEN }} https://github.com/SpectralOps/spectral-github-action --include-tags base,audit --ok |
| 50 | + windows-ci: |
| 51 | + name: Spectral windows CI |
| 52 | + runs-on: windows-latest |
24 | 53 | steps: |
25 | 54 | - uses: actions/checkout@v2 |
26 | | - - name: Install Spectral |
27 | | - uses: spectralops/spectral-github-action@v1 |
| 55 | + - name: Install and run Spectral CI |
| 56 | + uses: spectralops/spectral-github-action@v2 |
28 | 57 | with: |
29 | 58 | spectral-dsn: ${{ secrets.SPECTRAL_DSN }} |
30 | | - - name: Spectral Scan |
31 | | - run: spectral scan |
32 | | - windows: |
33 | | - name: Spectral windows |
| 59 | + spectral-args: scan --ok |
| 60 | + windows-audit: |
| 61 | + name: Spectral windows audit |
34 | 62 | runs-on: windows-latest |
35 | 63 | steps: |
36 | 64 | - uses: actions/checkout@v2 |
37 | | - - name: Install Spectral |
38 | | - uses: spectralops/spectral-github-action@v1 |
| 65 | + - name: Install and run Spectral Audit |
| 66 | + uses: spectralops/spectral-github-action@v2 |
39 | 67 | with: |
40 | 68 | spectral-dsn: ${{ secrets.SPECTRAL_DSN }} |
41 | | - - name: Spectral Scan |
42 | | - run: spectral.exe scan |
| 69 | + spectral-args: github -k repo -t ${{ secrets.MY_GITHUB_TOKEN }} https://github.com/SpectralOps/spectral-github-action --include-tags base,audit --ok |
0 commit comments