github.com/iamlucasvieira/ComTemplate@v0.0.0-20231228160247-43229117158f/.github/workflows/gotest.yml (about) 1 # This workflow will build a golang project 2 # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go 3 4 name: GoTest 5 6 on: 7 push: 8 branches: ["main"] 9 pull_request: 10 branches: ["main"] 11 12 jobs: 13 build: 14 runs-on: ubuntu-latest 15 steps: 16 - uses: actions/checkout@v3 17 18 - name: Set up Go 19 uses: actions/setup-go@v4 20 with: 21 go-version: "1.21" 22 23 - name: Build 24 run: go build -v ./... 25 26 - name: Test 27 run: go test -v ./...