| # This workflow will build a golang project |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go |
| |
| name: Go |
| |
| on: |
| push: |
| branches: [ "master" ] |
| pull_request: |
| branches: [ "master" ] |
| |
| permissions: |
| contents: read |
| |
| jobs: |
| |
| build: |
| runs-on: ubuntu-latest |
| steps: |
| - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 |
| |
| - name: Set up Go |
| uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0 |
| with: |
| go-version: 1.19 |
| |
| - name: Build |
| run: go build -v ./... |
| |
| - name: Test |
| run: go test -v ./... |