-
Notifications
You must be signed in to change notification settings - Fork 256
Improvement/cldsrv 875 integrate shared prettier #6124
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
base: development/9.3
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| --- | ||
| name: lint | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches-ignore: | ||
| - 'q/*/**' | ||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. lint.yaml uses actions/checkout@v6 and actions/setup-node@v6 while tests.yaml still uses @v4 for both. This inconsistency could cause subtle differences in checkout behavior (e.g. git config, fetch behavior) between the two workflows. Consider aligning both files on the same major version. |
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| prettier: | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '22' | ||
| cache: yarn | ||
| - name: install dependencies | ||
| run: yarn install --frozen-lockfile --network-concurrency 1 | ||
| - name: Prettier (changed files) | ||
| shell: bash | ||
| env: | ||
| BASE_REF: ${{ github.event.pull_request.base.ref }} | ||
| run: | | ||
| MERGE_BASE=$(git merge-base HEAD "origin/${BASE_REF}") | ||
| yarn run --silent prettier:diff --check "${MERGE_BASE}..HEAD" | ||
Uh oh!
There was an error while loading. Please reload this page.