Этот коммит содержится в:
Viacheslav Poturaev 2021-08-27 00:08:29 +02:00 коммит произвёл GitHub
родитель dfe99eadf5
коммит 953acd5d90
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 1 добавлений и 102 удалений

Просмотреть файл

@ -1,101 +0,0 @@
version: 2.1
orbs:
codecov: codecov/codecov@1.0.5
executors:
exec_go_1_13:
docker:
- image: circleci/golang:1.13.15
exec_go_1_14:
docker:
- image: circleci/golang:1.14.12
exec_go_1_15:
docker:
- image: circleci/golang:1.15.5
exec_go_1_16:
docker:
- image: cimg/go:1.16.7
exec_go_1_17:
docker:
- image: cimg/go:1.17
commands:
fmt:
description: "Run gofmt"
steps:
- run: gofmt -d -e . 2>&1 | tee outfile && test -z "$(cat outfile)" && rm outfile
lint:
description: "Run golint"
steps:
- run: go get -u golang.org/x/lint/golint
- run: golint -set_exit_status ./...
- run: cd _examples && golint -set_exit_status ./... && cd ..
vet:
description: "Run go vet"
steps:
- run: go vet ./...
- run: cd _examples && go vet ./... && cd ..
go_test:
description: "Run go test"
steps:
- run: sed -i 's#github.com/cucumber/godog/internal/formatters_test#/internal/formatters_test#g' internal/formatters/formatter-tests/*/*
- run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
- run: cd _examples && go test -v -race ./... && cd ..
godog:
description: "Run godog"
steps:
- run: go install ./cmd/godog
- run: godog -f progress --strict
coverage:
description: "Report on code coverage"
steps:
- codecov/upload:
file: "coverage.txt"
all:
description: "Run all commands against godog code"
steps:
- checkout
- fmt
- lint
- vet
- go_test
- godog
- coverage
jobs:
go1_13:
working_directory: /go/src/github.com/cucumber/godog
executor: exec_go_1_13
steps:
- all
go1_14:
working_directory: /go/src/github.com/cucumber/godog
executor: exec_go_1_14
steps:
- all
go1_15:
working_directory: /go/src/github.com/cucumber/godog
executor: exec_go_1_15
steps:
- all
go1_16:
working_directory: /home/circleci/go/src/github.com/cucumber/godog
executor: exec_go_1_16
steps:
- all
go1_17:
working_directory: /home/circleci/go/src/github.com/cucumber/godog
executor: exec_go_1_17
steps:
- all
workflows:
version: 2
test:
jobs:
- go1_13
- go1_14
- go1_15
- go1_16
- go1_17

Просмотреть файл

@ -1,4 +1,4 @@
[![CircleCI](https://circleci.com/gh/cucumber/godog/tree/master.svg?style=svg)](https://circleci.com/gh/cucumber/godog/tree/master) [![Build Status](https://github.com/cucumber/godog/workflows/test/badge.svg)](https://github.com/cucumber/godog/actions?query=branch%main+workflow%3Atest)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/cucumber/godog)](https://pkg.go.dev/github.com/cucumber/godog) [![PkgGoDev](https://pkg.go.dev/badge/github.com/cucumber/godog)](https://pkg.go.dev/github.com/cucumber/godog)
[![codecov](https://codecov.io/gh/cucumber/godog/branch/master/graph/badge.svg)](https://codecov.io/gh/cucumber/godog) [![codecov](https://codecov.io/gh/cucumber/godog/branch/master/graph/badge.svg)](https://codecov.io/gh/cucumber/godog)
[![pull requests](https://oselvar.com/api/badge?label=pull%20requests&csvUrl=https%3A%2F%2Fraw.githubusercontent.com%2Fcucumber%2Foselvar-github-metrics%2Fmain%2Fdata%2Fcucumber%2Fgodog%2FpullRequests.csv)](https://oselvar.com/github/cucumber/oselvar-github-metrics/main/cucumber/godog) [![pull requests](https://oselvar.com/api/badge?label=pull%20requests&csvUrl=https%3A%2F%2Fraw.githubusercontent.com%2Fcucumber%2Foselvar-github-metrics%2Fmain%2Fdata%2Fcucumber%2Fgodog%2FpullRequests.csv)](https://oselvar.com/github/cucumber/oselvar-github-metrics/main/cucumber/godog)