-
Notifications
You must be signed in to change notification settings - Fork 236
chore: migrate linting from circleci to github actions #5507
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
Conversation
|
Branch previewReview the following VRT differencesWhen a visual regression test fails (or has previously failed while working on this branch), its results can be found in the following URLs:
If the changes are expected, update the |
ea8edec to
32f760f
Compare
Tachometer resultsCurrently, no packages are changed by this PR... |
32f760f to
6ae9cc7
Compare
| key: v2-golden-images-{{ .Branch }}-<< parameters.regression_system >>-<< parameters.regression_color >>-<< parameters.regression_scale >>-<< parameters.regression_dir >>-{{ epoch }} | ||
|
|
||
| jobs: | ||
| commitlint: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is handled by pre-commit so we don't need to duplicate this here
| - store_test_results: | ||
| path: /root/project/results/ | ||
|
|
||
| lint: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved linting into a GitHub action
|
|
||
| concurrency: | ||
| group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | ||
| cancel-in-progress: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This ensures we don't end up with a queue for linting a PR
| with: | ||
| files_yaml: | | ||
| styles: | ||
| - '*.css' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept these pretty open-ended but we can refine this list as we go
| run: yarn install --immutable | ||
|
|
||
| - name: Lint styles | ||
| if: ${{ needs.changed_files.outputs.styles_added_files != '' || needs.changed_files.outputs.styles_modified_files != '' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This ensures the task is only run if there are files to lint
| tach-results.* | ||
| .gitconfig | ||
| .netlify/plugins | ||
| .env |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not suuuuuper related but we don't want to commit an env file yet.
| }, | ||
| "overrides": [ | ||
| { | ||
| "files": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be something we missed during cutover which is that we should probably start linting these files now that they're manually written rather than pre-processed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense
ef02e9d to
05cc5d5
Compare
| { | ||
| "private": true, | ||
| "name": "@adobe/spectrum-web-components", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected object keys to be in specified order. 'name' should be before 'private'.
| { | |
| "private": true, | |
| "name": "@adobe/spectrum-web-components", | |
| { | |
| "name": "@adobe/spectrum-web-components", | |
| "private": true, |
05cc5d5 to
cb1d411
Compare
nikkimk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiny nit: can we associate a ticket number with this? Otherwise, let girls train monsters (LGTM)!
dca4492 to
bb1c28f
Compare
bb1c28f to
3fca8ae
Compare
Description
This migrates linting from CircleCI to GitHub Actions.
Motivation and context
The current linting in CI is more-or-less boolean (did it pass or not) but requires pulling down the branch locally and linting to fix things. This update moves our linting work into a GitHub Action that uses ReviewDog to lint and report back to the pull request what the linter identified.
Author's checklist
Reviewer's checklist
patch,minor, ormajorfeaturesManual review test cases