~samwhited/checkmd

ref: 9dd91e3bdaead5f50cbce825a598a08fb644b308 checkmd/.builds/ci.yml -rw-r--r-- 663 bytes
9dd91e3bSam Whited Initial commit with simple link parsing 1 year, 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
image: freebsd/latest
packages:
  - go
sources:
  - https://git.sr.ht/~samwhited/checkmd
tasks:
  - setup: |
      go version
      go env

      go get -u golang.org/x/lint/golint
      go get -u github.com/securego/gosec/cmd/gosec
      go get -u git.sr.ht/~samwhited/checkdoc

      echo 'export PATH=$(go env GOPATH)/bin:$PATH' >> ~/.buildenv
  - lint: |
      cd checkmd/
      go vet ./...
      gofmt -s -l . && [ -z "$(gofmt -s -l .)" ]

      golint -set_exit_status ./...
      gosec ./...
      checkdoc ./...
  - validate: |
      cd checkmd/
      go mod tidy
      git diff --exit-code -- go.mod go.sum
  - run: |
      cd checkmd/
      go run . .