diff options
author | silverwind | 2022-09-09 17:33:01 +0200 |
---|---|---|
committer | GitHub | 2022-09-09 11:33:01 -0400 |
commit | b5d21c0adf38a4726b14157786be8ad11c1eda22 (patch) | |
tree | 23c09f5b4ca9c1f640ac8b1372f3bb7ec2120079 /.drone.yml | |
parent | 86ed47e622dabf5c27d60f00883fff46bd349d95 (diff) |
Generate go-licenses during tidy again (#21108)
We can not have the `frontend` target depend on golang because of they
way drone is set up. Move the `go-licenses` generation back into `tidy`
where it will now also be checked for consistency during `tidy-check`.
(I assume all `main` branch builds should currently fail [like
this](https://drone.gitea.io/go-gitea/gitea/60244/1/11)).
The reasony why it shouldn't be treated the same as for example `go
generate` is because output files are checked in. tidy is imho the
optimal target to run this after.
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to '.drone.yml')
-rw-r--r-- | .drone.yml | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/.drone.yml b/.drone.yml index 2b1d8cdd3..e035f57af 100644 --- a/.drone.yml +++ b/.drone.yml @@ -102,11 +102,16 @@ steps: - make test-frontend depends_on: [lint-frontend] + - name: generate-frontend + image: golang:1.19 + commands: + - make generate-frontend + - name: build-frontend image: node:18 commands: - make frontend - depends_on: [test-frontend] + depends_on: [deps-frontend, generate-frontend] - name: build-backend-no-gcc image: golang:1.18 # this step is kept as the lowest version of golang that we support @@ -529,16 +534,21 @@ services: steps: - name: deps-frontend - image: node:16 + image: node:18 pull: always commands: - make deps-frontend + - name: generate-frontend + image: golang:1.18 + commands: + - make generate-frontend + - name: build-frontend - image: node:16 + image: node:18 commands: - make frontend - depends_on: [deps-frontend] + depends_on: [deps-frontend, generate-frontend] - name: deps-backend image: golang:1.18 |