ci(workflows): suggest lint fixes via reviewdog #18337
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Add artifacts on push | |
| on: | |
| push: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Enumerate and diff features | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 # get the full repository checkout, not just the inciting commit | |
| persist-credentials: false | |
| - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: npm | |
| package-manager-cache: true | |
| - run: npm ci | |
| - run: node ./scripts/enumerate-features.js features.json | |
| - run: node ./scripts/diff-features.js --no-github --format=json > features.diff.json | |
| - uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| with: | |
| name: enumerate-features | |
| path: features.json | |
| - uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| with: | |
| name: diff-features | |
| path: features.diff.json |