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

Update lint script to not tolerate warnings during linter runs #1236

Merged
merged 3 commits into from
Jun 25, 2024

Conversation

ce0la
Copy link
Contributor

@ce0la ce0la commented Jun 21, 2024

Checklist


Proposed solution

This PR configures the CI to fail if one or more warnings are thrown in the linting job.

Testing

  1. Go to the actions tab here: https://github.com/input-output-hk/lace/actions/workflows/build-dev-preview.yml
  2. Click on the Run workflow button and select fail-linter-on-warning from the branch selector dropdown
  3. Click on Run workflow and wait for a few seconds while the workflow gets scheduled
  4. Go into the workflow run and see the logs to confirm that the job would fail if any warnings are detected during linting

@ce0la ce0la requested a review from a team as a code owner June 21, 2024 00:52
@ce0la ce0la enabled auto-merge (squash) June 21, 2024 00:52
@ce0la ce0la requested a review from michalrus June 21, 2024 00:53
@ce0la ce0la force-pushed the fail-linter-on-warning branch from 772dafe to 06542f5 Compare June 21, 2024 11:16
@michalrus
Copy link
Member

@ce0la you can check where eslint is used in other places:

❯ find -name 'package.json' -not -path '*/node_modules/*' | xargs grep -F eslint

@ce0la ce0la disabled auto-merge June 21, 2024 11:27
@ce0la ce0la force-pushed the fail-linter-on-warning branch from 06542f5 to daaa5d5 Compare June 24, 2024 21:00
@ce0la ce0la force-pushed the fail-linter-on-warning branch from daaa5d5 to f761e8d Compare June 25, 2024 00:13
Copy link
Contributor

@pczeglik-iohk pczeglik-iohk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ce0la,

If you like to proceed with this PR, you need to fix estlint warnings in apps/browser-extension-wallet.

Smoke Tests job fails on linting it. Check this output: https://github.com/input-output-hk/lace/actions/runs/9654217184/job/26628262898

@ce0la ce0la requested a review from a team as a code owner June 25, 2024 11:06
Copy link

Copy link
Contributor

@gytis-ivaskevicius gytis-ivaskevicius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

Allure Report

allure-report-publisher generated test report!

smokeTests: ✅ test report for e67a19a5

passed failed skipped flaky total result
Total 32 0 0 0 32

Copy link
Contributor

@pczeglik-iohk pczeglik-iohk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thank you @ce0la

@ce0la ce0la merged commit 806edbb into main Jun 25, 2024
15 of 16 checks passed
@ce0la ce0la deleted the fail-linter-on-warning branch June 25, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants