From a5c94942321242533ab74a62c8b85ed9f210aa84 Mon Sep 17 00:00:00 2001 From: Chris Cummer Date: Wed, 6 May 2020 22:27:14 -0700 Subject: [PATCH] Another actions test Signed-off-by: Chris Cummer --- .github/workflows/staticcheck.yml | 70 +++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 .github/workflows/staticcheck.yml diff --git a/.github/workflows/staticcheck.yml b/.github/workflows/staticcheck.yml new file mode 100644 index 00000000..3fc3005a --- /dev/null +++ b/.github/workflows/staticcheck.yml @@ -0,0 +1,70 @@ +name: static check +on: pull_request + +jobs: + imports: + name: Imports + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: check + uses: grandcolline/golang-github-actions@v1.1.0 + with: + run: imports + token: ${{ secrets.GITHUB_TOKEN }} + + errcheck: + name: Errcheck + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: check + uses: grandcolline/golang-github-actions@v1.1.0 + with: + run: errcheck + token: ${{ secrets.GITHUB_TOKEN }} + + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: check + uses: grandcolline/golang-github-actions@v1.1.0 + with: + run: lint + token: ${{ secrets.GITHUB_TOKEN }} + + shadow: + name: Shadow + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: check + uses: grandcolline/golang-github-actions@v1.1.0 + with: + run: shadow + token: ${{ secrets.GITHUB_TOKEN }} + + staticcheck: + name: StaticCheck + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: check + uses: grandcolline/golang-github-actions@v1.1.0 + with: + run: staticcheck + token: ${{ secrets.GITHUB_TOKEN }} + + sec: + name: Sec + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: check + uses: grandcolline/golang-github-actions@v1.1.0 + with: + run: sec + token: ${{ secrets.GITHUB_TOKEN }} + flags: "-exclude=G104"