ci: rm vet,fmt from os pipelines
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:
leo 2023-04-26 23:01:32 +02:00
parent 1655d6b792
commit fe9fd0fa5a
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

@ -37,42 +37,20 @@ steps:
# run Go mod tidy prior to committing
- 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
image: docker.io/immawanderer/archlinux-go:linux-amd64
depends_on: [go fmt, go vet]
depends_on: [go mod tidy]
volumes:
- name: gopath
path: /go
commands:
- mkdir -pv static
- pacman -Sy && pacman -S --noconfirm --needed npm
- 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
image: docker.io/immawanderer/archlinux-go:linux-amd64
depends_on: [go fmt, go vet, npm i]
depends_on: [go mod tidy, npm i]
volumes:
- name: gopath
path: /go
@ -81,7 +59,7 @@ steps:
- name: go test
image: docker.io/immawanderer/archlinux-go:linux-amd64
depends_on: [go fmt, go vet, npm i]
depends_on: [go mod tidy, npm i]
volumes:
- name: gopath
path: /go
@ -131,43 +109,20 @@ steps:
# run Go mod tidy prior to committing
- 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
image: docker.io/library/golang:1.20.3-alpine3.17
depends_on: [go fmt, go vet]
depends_on: [go mod tidy]
volumes:
- name: gopath
path: /go
commands:
- mkdir -pv static
- apk update -q && apk add -q --no-cache npm
- 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
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:
- name: gopath
path: /go
@ -176,7 +131,7 @@ steps:
- name: go test
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:
- name: gopath
path: /go