github.com/erda-project/erda-infra@v1.0.9/.github/workflows/ci-it.yml (about) 1 name: CI AND IT 2 on: 3 push: 4 tags: 5 - v* 6 branches: 7 - develop 8 - master 9 - release/* 10 pull_request: 11 jobs: 12 CI: 13 runs-on: ubuntu-latest 14 steps: 15 - uses: actions/checkout@v3 16 - name: Set up Go 17 uses: actions/setup-go@v3 18 with: 19 go-version: 1.19 20 - name: Run Lint 21 uses: golangci/golangci-lint-action@v3 22 - name: Run Test 23 run: | 24 go test -cpu=2 -timeout 10s -race -coverprofile=coverage.txt -covermode=atomic ./... 25 bash <(curl -s https://codecov.io/bash) 26 CODE-CHECK: 27 runs-on: ubuntu-latest 28 container: 29 image: registry.erda.cloud/erda/erda-base:20230130 30 steps: 31 - uses: actions/checkout@v2 32 - name: Run go mod tidy 33 run: make tidy 34 - name: Run Go Lint 35 run: | 36 go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.49.0 37 golangci-lint run --timeout=15m ./... 38 # - name: Run Go Vet 39 # run: go vet ./...