diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d3e523f..cad28af 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,10 +1,30 @@ name: Build on: - - push - - pull_request + push: + branches: [ main ] + pull_request: + branches: [ main ] jobs: + test: + runs-on: ubuntu-latest + defaults: + run: + shell: bash + steps: + - uses: actions/checkout@v3 + + - name: Setup Go + uses: actions/setup-go@v3 + with: + go-version-file: go.mod + check-latest: true + cache: true + + - name: Test + run: go test ./... + build: runs-on: ubuntu-latest defaults: