| name: GoTest |
| |
| on: |
| push: |
| branches: [ main ] |
| pull_request: |
| branches: [ main ] |
| |
| jobs: |
| |
| build: |
| name: Build |
| runs-on: ubuntu-latest |
| steps: |
| |
| - name: Check out code into the Go module directory |
| uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 |
| |
| - name: Set up Go 1.x |
| uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0 |
| with: |
| go-version-file: "go.mod" |
| |
| - name: Get dependencies |
| run: | |
| go mod download |
| |
| - name: Build |
| run: | |
| make lint |
| go build |
| |
| - name: Test |
| run: | |
| make docscheck |
| make test |