...

Text file src/github.com/tklauser/go-sysconf/.github/workflows/static-analysis.yml

Documentation: github.com/tklauser/go-sysconf/.github/workflows

     1name: Static Analysis
     2
     3on:
     4  push:
     5    branches:
     6    - main
     7  pull_request:
     8    branches:
     9    - main
    10
    11jobs:
    12  check:
    13    runs-on: ubuntu-latest
    14
    15    steps:
    16    - name: Install Go
    17      uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f
    18      with:
    19        go-version: '1.19'
    20
    21    - name: Check out code
    22      uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
    23
    24    - name: Install staticcheck
    25      run: go install honnef.co/go/tools/cmd/staticcheck@latest
    26
    27    - name: Run staticcheck
    28      run: |
    29        staticcheck -version
    30        staticcheck -- ./...
    31
    32    - name: Run go vet
    33      run: go vet ./...

View as plain text