| 1 |
name: Pull Request Checks |
| 2 |
on: |
| 3 |
pull_request: |
| 4 |
jobs: |
| 5 |
checks: |
| 6 |
name: Checks |
| 7 |
runs-on: ubuntu-latest |
| 8 |
steps: |
| 9 |
- uses: actions/checkout@v2 |
| 10 |
with: |
| 11 |
fetch-depth: 0 |
| 12 |
- name: Format |
| 13 |
uses: grandcolline/[email protected] |
| 14 |
with: |
| 15 |
run: fmt |
| 16 |
token: ${{ secrets.GITHUB_TOKEN }} |
| 17 |
- name: Imports |
| 18 |
uses: grandcolline/[email protected] |
| 19 |
with: |
| 20 |
run: imports |
| 21 |
token: ${{ secrets.GITHUB_TOKEN }} |
| 22 |
- name: Lint |
| 23 |
uses: grandcolline/[email protected] |
| 24 |
with: |
| 25 |
run: lint |
| 26 |
token: ${{ secrets.GITHUB_TOKEN }} |
| 27 |
- name: Shadow |
| 28 |
uses: grandcolline/[email protected] |
| 29 |
with: |
| 30 |
run: shadow |
| 31 |
token: ${{ secrets.GITHUB_TOKEN }} |
| 32 |
- name: Static Check |
| 33 |
uses: grandcolline/[email protected] |
| 34 |
with: |
| 35 |
run: staticcheck |
| 36 |
token: ${{ secrets.GITHUB_TOKEN }} |
| 37 |
- name: Vet |
| 38 |
uses: grandcolline/[email protected] |
| 39 |
with: |
| 40 |
run: vet |
| 41 |
token: ${{ secrets.GITHUB_TOKEN }} |