Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'make lint', restructure 'compliance' pipeline #10861

Merged
merged 1 commit into from
Mar 29, 2020

Conversation

silverwind
Copy link
Member

@silverwind silverwind commented Mar 28, 2020

  • Added 'lint', 'lint-frontend', 'lint-backend' targets
  • Added 'lint-frontend', 'lint-backend' ci steps and restructure the 'compliance' pipeline to have a clear separation between frontend and backend and use parallelism where possible. Also, the main build pipelines now depend on 'compliance' so they will skip if it fails.
  • Added dependencies on ci steps so they skip when 'compliance' fails
  • Moved JS linters to devDependencies
  • Removed deprecated 'js' and 'css' targets

@silverwind silverwind changed the title Add 'make lint' Add 'make lint', restructure 'compliance' pipeline Mar 28, 2020
@silverwind
Copy link
Member Author

silverwind commented Mar 28, 2020

Should be ready for review.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Mar 28, 2020
@codecov-io
Copy link

codecov-io commented Mar 28, 2020

Codecov Report

Merging #10861 into master will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #10861      +/-   ##
==========================================
+ Coverage   43.39%   43.41%   +0.01%     
==========================================
  Files         593      593              
  Lines       83285    83285              
==========================================
+ Hits        36141    36157      +16     
+ Misses      42650    42637      -13     
+ Partials     4494     4491       -3     
Impacted Files Coverage Δ
services/pull/check.go 51.21% <0.00%> (-1.83%) ⬇️
models/error.go 29.96% <0.00%> (-0.55%) ⬇️
modules/git/repo.go 48.11% <0.00%> (+0.83%) ⬆️
modules/queue/workerpool.go 58.00% <0.00%> (+2.13%) ⬆️
models/unit.go 44.44% <0.00%> (+2.46%) ⬆️
modules/git/utils.go 70.14% <0.00%> (+4.47%) ⬆️
modules/indexer/stats/db.go 59.37% <0.00%> (+18.75%) ⬆️
modules/indexer/stats/queue.go 81.25% <0.00%> (+18.75%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3f0cb8b...1004a23. Read the comment docs.

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Mar 28, 2020
@zeripath zeripath added the topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile label Mar 28, 2020
@zeripath zeripath added this to the 1.12.0 milestone Mar 28, 2020
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Mar 29, 2020
@6543
Copy link
Member

6543 commented Mar 29, 2020

by by css and js targets

- Added 'lint', 'lint-frontend', 'lint-backend' targets
- Added 'lint-frontend', 'lint-backend' ci steps and restructure the
  'compliance' pipeline to have a clear separation between frontend and
  backend and use parallelism where possible. Also, the main build
  pipelines now depend on 'compliance' so they will skip if it fails.
- Added dependencies on ci steps so they skip when 'compliance' fails
- Moved JS linters to devDependencies
- Removed deprecated 'js' and 'css' targets
@zeripath zeripath merged commit ad40264 into go-gitea:master Mar 29, 2020
@silverwind silverwind deleted the lint branch March 29, 2020 15:02
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants