Skip to content

Commit

Permalink
Add mage check to CI (elastic#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
kvch authored Feb 11, 2022
1 parent 79c685a commit d059cc9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ pipeline {
steps {
withGithubNotify(context: "Lint") {
dir("${BASE_DIR}"){
withGoEnv(){
withMageEnv(){
sh(label: 'lint', script: '''
go mod tidy && git diff --exit-code
gofmt -l . | read && echo "Code differs from gofmt's style. Run 'gofmt -w .'" 1>&2 && exit 1 || true
''')
sh(label: 'Mage check', script: 'mage check')
sh(label: 'Go vet', script: 'go vet ./...')
}
}
Expand Down

0 comments on commit d059cc9

Please sign in to comment.