Skip to content

Commit

Permalink
Run the validate step before the publish step
Browse files Browse the repository at this point in the history
To avoid publishing code that doesn't validate.
  • Loading branch information
rhafer committed Jan 5, 2023
1 parent 7735246 commit 0b5eb8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ def generate(ctx, lang):
'test -d "templates/{0}" && TEMPLATE_ARG="-t templates/{0}" || TEMPLATE_ARG=""'.format(lang),
'/usr/local/bin/docker-entrypoint.sh generate --enable-post-process-file -i api/openapi-spec/v1.0.yaml $${TEMPLATE_ARG} --additional-properties=packageName=libregraph --git-user-id=owncloud --git-repo-id=%s -g %s -o %s' % (config["languages"][lang]["repo-slug"], lang, config["languages"][lang]["src"]),
],
},
}
] + validate(lang) + [
{
"name": "diff",
"image": "owncloudci/alpine:latest",
Expand Down Expand Up @@ -198,8 +199,7 @@ def generate(ctx, lang):
],
},
},
},
] + validate(lang),
}],
'depends_on': [],
'trigger': {
'ref': [
Expand Down

0 comments on commit 0b5eb8a

Please sign in to comment.