github.com/safedep/dry@v0.0.0-20241016050132-a15651f0548b/.github/workflows/go.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: Go 5 6 on: 7 push: 8 branches: [ "main" ] 9 pull_request: 10 branches: [ "main" ] 11 12 jobs: 13 14 build: 15 runs-on: ubuntu-latest 16 steps: 17 - uses: actions/checkout@v3 18 19 - name: Set up Go 20 uses: actions/setup-go@v3 21 with: 22 go-version: 1.21 23 24 - name: Install OpenAPI Tools 25 run: go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@v1.10.1 26 27 - name: Download Mods 28 run: go mod tidy 29 30 - name: Generate Code 31 run: go generate -v ./... 32 33 - name: Test Code 34 run: go test -v ./...