This commit is contained in:
2024-07-06 15:34:43 +02:00
parent 1eb074386b
commit dfcfe9da73

View File

@@ -10,36 +10,36 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
# - name: Set up Go - name: Set up Go
# uses: actions/setup-go@v3 uses: actions/setup-go@v3
# with: with:
# go-version: '^1.21.4' go-version: '^1.21.4'
# - name: Install dependencies - name: Install dependencies
# run: go mod tidy run: go mod tidy
# - name: Install golangci-lint - name: Install golangci-lint
# run: | run: |
# curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.1 curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.1
# - name: Run golangci-lint - name: Run golangci-lint
# run: | run: |
# $(go env GOPATH)/bin/golangci-lint run $(go env GOPATH)/bin/golangci-lint run
# - name: Build - name: Build
# run: go build -v ./... run: go build -v ./...
# - name: Run tests with race detector - name: Run tests with race detector
# run: go test -v -race ./... run: go test -v -race ./...
# - name: Run tests and generate coverage report - name: Run tests and generate coverage report
# run: go test -v -coverprofile=coverage.out ./... run: go test -v -coverprofile=coverage.out ./...
# - name: Display coverage - name: Display coverage
# run: go tool cover -func=coverage.out run: go tool cover -func=coverage.out
# - name: Upload coverage report - name: Upload coverage report
# uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
# with: with:
# name: coverage-report name: coverage-report
# path: coverage.out path: coverage.out