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

Isolate VSCode extension lint and formatting checks #1184

Merged

Conversation

dotNomad
Copy link
Collaborator

@dotNomad dotNomad commented Mar 20, 2024

Before this PR we were linting in docker, and in every OS in our native workflow matrixes. This PR splits that up so we only running linting and formatting checks once.

This was done partially to address Prettier failing on Windows (most likely due to actions/checkout#135).

It was also done to reduce our CI's runtime slightly, and provide an easy avenue for adding to our linting and formatting checks as the work in #1030 continues.

Intent

Type of Change

    • Bug Fix
    • New Feature
    • Breaking Change
    • Documentation
    • Refactor
    • Tooling

Approach

To do this I needed to split out the dependency installation in the extensions/vscode/justfile. It used to be done in just vscode configure now just vscode deps installs them (install is already being used so I couldn't match it with the web justfile).

just vscode configure calls just deps so we don't need to chain commands.

@dotNomad dotNomad force-pushed the dotnomad/iso-lint-vscode branch 5 times, most recently from 03d2168 to b931f8b Compare March 20, 2024 22:57
@dotNomad dotNomad changed the title Isolate vscode lint Isolate VSCode extension lint and formatting checks Mar 20, 2024
Comment on lines +12 to +15
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I was able to use Node 20 right away here to help with #908.

I also setup NPM dependency caching so this workflow is extremely lightweight.

@dotNomad dotNomad marked this pull request as ready for review March 20, 2024 23:11
Copy link
Collaborator

@sagerb sagerb left a comment

Choose a reason for hiding this comment

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

LGTM

Base automatically changed from dotnomad/vscode-format to prettier-introduction-integration-branch March 21, 2024 18:10
@sagerb sagerb merged commit 90eccff into prettier-introduction-integration-branch Mar 21, 2024
22 checks passed
@sagerb sagerb deleted the dotnomad/iso-lint-vscode branch March 21, 2024 18:11
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