ci: make frontend depend on pull
All checks were successful
continuous-integration/drone/push Build is passing

* change git status checking method to git diff-index
This commit is contained in:
leo 2023-05-04 15:12:24 +02:00
parent 1f427abbbe
commit 18adb45692
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

View File

@ -34,13 +34,13 @@ steps:
path: /go
commands:
- go mod tidy
- git status --porcelain
- git diff-index HEAD :^package-lock.json
# run Go mod tidy prior to committing
- test -z "$(git status --porcelain)"
- test -z "$(git diff-index HEAD :^package-lock.json)"
- name: frontend
image: docker.io/immawanderer/archlinux-go:linux-amd64
depends_on: [go mod tidy]
depends_on: [pull]
volumes:
- name: gopath
path: /go
@ -106,13 +106,13 @@ steps:
commands:
- go mod tidy
- apk update -q && apk add -q --no-cache git
- git status --porcelain
- git diff-index HEAD :^package-lock.json
# run Go mod tidy prior to committing
- test -z "$(git status --porcelain)"
- test -z "$(git diff-index HEAD :^package-lock.json)"
- name: frontend
image: docker.io/library/golang:1.20.3-alpine3.17
depends_on: [go mod tidy]
depends_on: [pull]
volumes:
- name: gopath
path: /go