github.com/stealthrocket/wzprof@v0.2.1-0.20230830205924-5fa86be5e5b3/.github/workflows/build.yml (about) 1 name: build 2 on: 3 push: 4 tags: 5 - v* 6 branches: 7 - main 8 pull_request: 9 branches: 10 - main 11 12 concurrency: 13 group: ${{ github.workflow }}-${{ github.event.number || github.ref }} 14 cancel-in-progress: true 15 16 env: 17 # renovate: datasource=go depName=github.com/golangci/golangci-lint 18 GOLANGCI_LINT_VERSION: v1.52.2 19 20 jobs: 21 spellcheck: 22 name: Spell Check 23 runs-on: ubuntu-latest 24 steps: 25 - name: Checkout Actions Repository 26 uses: actions/checkout@v2 27 28 - name: Check spelling of Go files 29 uses: crate-ci/typos@master 30 with: 31 files: '*.go' 32 write_changes: true 33 34 golangci-lint: 35 name: Go Lint 36 runs-on: ubuntu-latest 37 timeout-minutes: 30 38 steps: 39 - uses: actions/checkout@v3 40 41 - name: Set up Go 42 uses: actions/setup-go@v3 43 with: 44 go-version-file: .go-version 45 check-latest: true 46 cache: true 47 48 - name: golangci-lint 49 uses: golangci/golangci-lint-action@v3 50 with: 51 version: ${{ env.GOLANGCI_LINT_VERSION }} 52 args: --timeout 5m 53 54 test: 55 name: Go Test 56 runs-on: ubuntu-latest 57 steps: 58 - uses: actions/checkout@v3 59 60 - name: Set up Go 61 uses: actions/setup-go@v3 62 with: 63 go-version-file: .go-version 64 check-latest: true 65 66 - name: Setup python 67 run: make python 68 69 - name: Test 70 run: go test ./...