ci: rm vet,fmt from os pipelines
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
...since it runs in the golangci-lint pipeline. also, use `assets` instead of `static` for tailwind as per last commit.
This commit is contained in:
parent
1655d6b792
commit
fe9fd0fa5a
61
.drone.yml
61
.drone.yml
|
@ -37,42 +37,20 @@ steps:
|
||||||
# run Go mod tidy prior to committing
|
# run Go mod tidy prior to committing
|
||||||
- test -z "$(git status --porcelain)"
|
- test -z "$(git status --porcelain)"
|
||||||
|
|
||||||
- name: go fmt
|
|
||||||
image: docker.io/immawanderer/archlinux-go:linux-amd64
|
|
||||||
depends_on: [go mod tidy]
|
|
||||||
volumes:
|
|
||||||
- name: gopath
|
|
||||||
path: /go
|
|
||||||
commands:
|
|
||||||
- go fmt ./...
|
|
||||||
- git status --porcelain
|
|
||||||
# unformatted Go code
|
|
||||||
- test -z "$(git status --porcelain)"
|
|
||||||
|
|
||||||
- name: go vet
|
|
||||||
image: docker.io/immawanderer/archlinux-go:linux-amd64
|
|
||||||
depends_on: [go mod tidy]
|
|
||||||
volumes:
|
|
||||||
- name: gopath
|
|
||||||
path: /go
|
|
||||||
commands:
|
|
||||||
- go vet ./...
|
|
||||||
|
|
||||||
- name: npm i
|
- name: npm i
|
||||||
image: docker.io/immawanderer/archlinux-go:linux-amd64
|
image: docker.io/immawanderer/archlinux-go:linux-amd64
|
||||||
depends_on: [go fmt, go vet]
|
depends_on: [go mod tidy]
|
||||||
volumes:
|
volumes:
|
||||||
- name: gopath
|
- name: gopath
|
||||||
path: /go
|
path: /go
|
||||||
commands:
|
commands:
|
||||||
- mkdir -pv static
|
|
||||||
- pacman -Sy && pacman -S --noconfirm --needed npm
|
- pacman -Sy && pacman -S --noconfirm --needed npm
|
||||||
- npm i
|
- npm i
|
||||||
- npx tailwindcss -i ./assets/input.css -o ./static/pcmt.css --minify
|
- npx tailwindcss -i ./assets/input.css -o ./assets/pcmt.css --minify
|
||||||
|
|
||||||
- name: go build
|
- name: go build
|
||||||
image: docker.io/immawanderer/archlinux-go:linux-amd64
|
image: docker.io/immawanderer/archlinux-go:linux-amd64
|
||||||
depends_on: [go fmt, go vet, npm i]
|
depends_on: [go mod tidy, npm i]
|
||||||
volumes:
|
volumes:
|
||||||
- name: gopath
|
- name: gopath
|
||||||
path: /go
|
path: /go
|
||||||
|
@ -81,7 +59,7 @@ steps:
|
||||||
|
|
||||||
- name: go test
|
- name: go test
|
||||||
image: docker.io/immawanderer/archlinux-go:linux-amd64
|
image: docker.io/immawanderer/archlinux-go:linux-amd64
|
||||||
depends_on: [go fmt, go vet, npm i]
|
depends_on: [go mod tidy, npm i]
|
||||||
volumes:
|
volumes:
|
||||||
- name: gopath
|
- name: gopath
|
||||||
path: /go
|
path: /go
|
||||||
|
@ -131,43 +109,20 @@ steps:
|
||||||
# run Go mod tidy prior to committing
|
# run Go mod tidy prior to committing
|
||||||
- test -z "$(git status --porcelain)"
|
- test -z "$(git status --porcelain)"
|
||||||
|
|
||||||
- name: go fmt
|
|
||||||
image: docker.io/library/golang:1.20.3-alpine3.17
|
|
||||||
depends_on: [go mod tidy]
|
|
||||||
volumes:
|
|
||||||
- name: gopath
|
|
||||||
path: /go
|
|
||||||
commands:
|
|
||||||
- go fmt ./...
|
|
||||||
- apk update -q && apk add -q --no-cache git
|
|
||||||
- git status --porcelain
|
|
||||||
# unformatted Go code
|
|
||||||
- test -z "$(git status --porcelain)"
|
|
||||||
|
|
||||||
- name: go vet
|
|
||||||
image: docker.io/library/golang:1.20.3-alpine3.17
|
|
||||||
depends_on: [go mod tidy]
|
|
||||||
volumes:
|
|
||||||
- name: gopath
|
|
||||||
path: /go
|
|
||||||
commands:
|
|
||||||
- go vet ./...
|
|
||||||
|
|
||||||
- name: npm i
|
- name: npm i
|
||||||
image: docker.io/library/golang:1.20.3-alpine3.17
|
image: docker.io/library/golang:1.20.3-alpine3.17
|
||||||
depends_on: [go fmt, go vet]
|
depends_on: [go mod tidy]
|
||||||
volumes:
|
volumes:
|
||||||
- name: gopath
|
- name: gopath
|
||||||
path: /go
|
path: /go
|
||||||
commands:
|
commands:
|
||||||
- mkdir -pv static
|
|
||||||
- apk update -q && apk add -q --no-cache npm
|
- apk update -q && apk add -q --no-cache npm
|
||||||
- npm i
|
- npm i
|
||||||
- npx tailwindcss -i ./assets/input.css -o ./static/pcmt.css --minify
|
- npx tailwindcss -i ./assets/input.css -o ./assets/pcmt.css --minify
|
||||||
|
|
||||||
- name: go build
|
- name: go build
|
||||||
image: docker.io/library/golang:1.20.3-alpine3.17
|
image: docker.io/library/golang:1.20.3-alpine3.17
|
||||||
depends_on: [go fmt, go vet, npm i]
|
depends_on: [go mod tidy, npm i]
|
||||||
volumes:
|
volumes:
|
||||||
- name: gopath
|
- name: gopath
|
||||||
path: /go
|
path: /go
|
||||||
|
@ -176,7 +131,7 @@ steps:
|
||||||
|
|
||||||
- name: go test
|
- name: go test
|
||||||
image: docker.io/library/golang:1.20.3-alpine3.17
|
image: docker.io/library/golang:1.20.3-alpine3.17
|
||||||
depends_on: [go fmt, go vet, npm i]
|
depends_on: [go mod tidy, npm i]
|
||||||
volumes:
|
volumes:
|
||||||
- name: gopath
|
- name: gopath
|
||||||
path: /go
|
path: /go
|
||||||
|
|
Loading…
Reference in New Issue