diff --git a/.drone.yml b/.drone.yml index 1570f5b..4e791e8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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