github.com/erda-project/erda-infra@v1.0.10-0.20240327085753-f3a249292aeb/.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 echo $GOARCH 25 go test -cpu=2 -timeout 10s -race -coverprofile=coverage.txt -covermode=atomic ./... 26 bash <(curl -s https://codecov.io/bash) 27 CODE-CHECK: 28 runs-on: ubuntu-latest 29 container: 30 image: registry.erda.cloud/erda/erda-base:20230130 31 steps: 32 - uses: actions/checkout@v2 33 - name: Run go mod tidy 34 run: make tidy 35 - name: Run Go Lint 36 run: | 37 go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.49.0 38 golangci-lint run --timeout=15m ./... 39 # - name: Run Go Vet 40 # run: go vet ./...