Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 914e1604a5 | |||
| 0f1d502a39 |
+6
-8
@@ -17,14 +17,14 @@
|
|||||||
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
image: golang:1.15
|
image: golang:1.17
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
GOFLAGS: -mod=readonly
|
GOFLAGS: -mod=readonly
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- deps
|
- deps
|
||||||
- test
|
- test
|
||||||
|
|
||||||
deps:
|
deps:
|
||||||
stage: deps
|
stage: deps
|
||||||
@@ -43,8 +43,6 @@ test:
|
|||||||
- CGO_ENABLED=1 go test -mod=readonly -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=$(go list ./... | tr '\n' , | sed 's/,$//') ./...
|
- CGO_ENABLED=1 go test -mod=readonly -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=$(go list ./... | tr '\n' , | sed 's/,$//') ./...
|
||||||
- go tool cover -html=coverage.txt -o coverage.html
|
- go tool cover -html=coverage.txt -o coverage.html
|
||||||
- go tool cover -func=coverage.txt
|
- go tool cover -func=coverage.txt
|
||||||
- bash <(curl -s https://codecov.io/bash)
|
- curl -Os https://uploader.codecov.io/latest/linux/codecov
|
||||||
artifacts:
|
- chmod +x codecov
|
||||||
paths:
|
- ./codecov -t ${CODECOV_TOKEN}
|
||||||
- coverage.html
|
|
||||||
- coverage.txt
|
|
||||||
|
|||||||
Reference in New Issue
Block a user