JamieMason / JamieMason/syncpack-github-action

How to run in lint only (no fixing) mode

Open
#5 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
14
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Hi!

I have the following action

```
name: Test PNPM dependencies are in sync across packages

on:
push:
paths:
- src/pnpm-lock.yaml
- src/pnpm-workspace.yaml
- .syncpackrc.json
- .github/workflows/test-pnpm-synced-dependencies.yml

jobs:
check-pnpm-lock-versions:
runs-on: ubuntu-22.04
name: Test PNPM dependencies are in sync across packages
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: JamieMason/syncpack-github-action@0.2.2
with:
package-manager: "pnpm"
format-mismatches: "ignore"
lockfile-mismatches: "ignore"
semver-range-mismatches: "ignore"
version-mismatches: "lint"
```

Basically it should be lint only, no fixing mode. But when I try to run it it gives the following error

![image](https://user-images.githubusercontent.com/6587821/203111118-e47124c7-0e21-4a37-8516-23e82a4bb314.png)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the workflow with JamieMason/syncpack-github-action@0.2.2 and its version-mismatches input; the reported error is only provided as an image. Confirm the action can run in lint-only mode and that mismatches are reported without fixing files.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, node.js
Domain
ci-cd
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.