Skip to content

Commit

Permalink
chore: markdown lint (#17)
Browse files Browse the repository at this point in the history
* chore: markdown lint

* add mdl to make check

* replace container with install-go step

---------

Co-authored-by: Andrew Benington <[email protected]>
  • Loading branch information
AlaricWhitney and andrewbenington authored Aug 16, 2023
1 parent ad6611d commit fe4a67b
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 10 deletions.
5 changes: 3 additions & 2 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# These owners will be the default owners for everything in the repo.
* @go-vela/admins
# These owners will be the default owners for everything in the repo

* @go-vela/admins
1 change: 1 addition & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ cd $HOME/go-vela/vela-k6

- Run the repository code (ensures your changes perform as you desire):
- Ensure the appropriate environment variables are set (`PARAMETER_SCRIPT_PATH`, optionally `PARAMETER_OUTPUT_PATH`, `PARAMETER_PROJEKTOR_COMPAT_MODE`, and `PARAMETER_FAIL_ON_THRESHOLD_BREACH`)

```bash
# execute the `start` target with `make`
make start
Expand Down
4 changes: 2 additions & 2 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ Please see our [support](SUPPORT.md) documentation for further instructions.

## Copyright and License

```
```text
Copyright (c) 2023 Target Brands, Inc.
```

The Grafana Labs Marks are trademarks of Grafana Labs, and are used with Grafana Labs’ permission. We are not affiliated with, endorsed or sponsored by Grafana Labs or its affiliates.

[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)
[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)
11 changes: 9 additions & 2 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,19 @@ jobs:

full-review:
runs-on: ubuntu-latest
container:
image: golang:1.21@sha256:ec457a2fcd235259273428a24e09900c496d0c52207266f96a330062a01e3622

steps:
- name: clone
uses: actions/checkout@v3

- name: install go
uses: actions/setup-go@v4
with:
# use version from go.mod file
go-version-file: 'go.mod'
cache: true
check-latest: true

- name: golangci-lint
uses: reviewdog/action-golangci-lint@v2
with:
Expand Down
6 changes: 3 additions & 3 deletions DOCS.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## Description
# Description

This plugin uses [Grafana k6](https://k6.io/) to run performance tests in a Vela pipeline.

Source Code: https://github.com/go-vela/vela-k6
Source Code: <https://github.com/go-vela/vela-k6>

Registry: https://hub.docker.com/r/target/vela-k6
Registry: <https://hub.docker.com/r/target/vela-k6>

## Usage

Expand Down
15 changes: 14 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ LD_FLAGS = -X github.com/go-vela/vela-k6/version.Commit=${GITHUB_SHA} -X github.
deps: go-tidy golangci-lint ## Install golang dependencies for the application

.PHONY: check
check: go-tidy check-all golangci-lint ## Run all lint checks
check: go-tidy check-all lint-all ## Run all lint checks

.PHONY: clean
clean: clean-all go-tidy ## Clean up the application and test output
Expand Down Expand Up @@ -66,6 +66,9 @@ check-all:
@go vet ./...
@go fmt ./...

.PHONY: lint-all
lint-all: golangci-lint mdl

.PHONY: clean-all
clean-all:
@rm -f perf-test.json
Expand Down Expand Up @@ -95,6 +98,16 @@ endif
@golangci-lint run ./...
@echo finished running golangci-lint

.PHONY: mdl
mdl:
ifeq ($(strip $(shell which mdl)),)
ifneq ($(strip $(shell which gem)),)
@gem install mdl
endif
endif
@mdl -g --rules ~MD007,~MD013 .
@echo finished running mdl

# The `build-all` target is intended to compile
# the Go source code into a binary.
#
Expand Down

0 comments on commit fe4a67b

Please sign in to comment.