forked from rancher/steve
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
72ab913
commit 1f2f28e
Showing
2 changed files
with
22 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,17 +3,17 @@ kind: pipeline | |
name: fossa | ||
|
||
steps: | ||
- name: fossa | ||
image: rancher/drone-fossa:latest | ||
settings: | ||
api_key: | ||
from_secret: FOSSA_API_KEY | ||
when: | ||
instance: | ||
include: | ||
- drone-publish.rancher.io | ||
exclude: | ||
- drone-pr.rancher.io | ||
- name: fossa | ||
image: rancher/drone-fossa:latest | ||
settings: | ||
api_key: | ||
from_secret: FOSSA_API_KEY | ||
when: | ||
instance: | ||
include: | ||
- drone-publish.rancher.io | ||
exclude: | ||
- drone-pr.rancher.io | ||
--- | ||
kind: pipeline | ||
name: build | ||
|
@@ -22,11 +22,11 @@ steps: | |
- name: build | ||
image: registry.suse.com/bci/golang:1.19 | ||
commands: | ||
- make build-bin | ||
- make build-bin | ||
when: | ||
event: | ||
- push | ||
- pull_request | ||
- push | ||
- pull_request | ||
--- | ||
kind: pipeline | ||
name: validate | ||
|
@@ -38,6 +38,7 @@ steps: | |
- zypper in -y go=1.19 git tar gzip make | ||
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.49.0 | ||
- mv ./bin/golangci-lint /usr/local/bin/golangci-lint | ||
- GOBIN=/usr/local/bin go install github.com/golang/mock/[email protected] | ||
- make validate | ||
when: | ||
event: | ||
|
@@ -51,8 +52,8 @@ steps: | |
- name: test | ||
image: registry.suse.com/bci/golang:1.19 | ||
commands: | ||
- make test | ||
- make test | ||
when: | ||
event: | ||
- push | ||
- pull_request | ||
- push | ||
- pull_request |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
go generate ./.. | ||
golangci-lint run | ||
go mod tidy | ||
go mod verify | ||
unclean=$(git status --porcelain --untracked-files=no) | ||
if [ -n "$unclean" ]; then | ||
echo "Encountered dirty repo!"; | ||
echo "$unclean"; | ||
exit 1; | ||
echo "Encountered dirty repo!" | ||
echo "$unclean" | ||
exit 1 | ||
fi |