| 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@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.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@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 |
| with: |
| name: enumerate-features |
| path: features.json |
| - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 |
| with: |
| name: diff-features |
| path: features.diff.json |