build(cicd): Ajoute un job matrix pour générer le manifest d'un pack
Some checks failed
Wallset Pipeline / detect-changes (pull_request) Failing after 15s
Wallset Pipeline / Generate and Check manifest of ${{ matrix.pack }} (pull_request) Has been skipped

supposemment capable de fonctionner en parallelle quand plusieurs packs sont modifiés
This commit is contained in:
2025-07-12 15:41:12 +02:00
parent f9fae12ae4
commit 5abfa7ec16

View File

@@ -16,7 +16,6 @@ jobs:
outputs: outputs:
changed: ${{ steps.set.outputs.changed }} changed: ${{ steps.set.outputs.changed }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@@ -28,5 +27,30 @@ jobs:
run: echo "$GITHUB_CONTEXT" run: echo "$GITHUB_CONTEXT"
- name: Detect changed packs - name: Detect changed packs
id: set
run: | run: |
git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep '^assets/' | cut -d '/' -f2 | sort -u | jq -R -s -c 'split("\n")[:-1]' PACKS= $(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep '^assets/' | cut -d '/' -f2 | sort -u | jq -R -s -c 'split("\n")[:-1]')
echo "changed=$PACKS" >> $GITHUB_OUTPUT
gen-manifest:
runs-on: ubuntu-latest
needs: detect-changes
strategy:
matrix:
pack: ${{ fromJson(needs.detect-changes.outputs.changed) }}
name: Generate and Check manifest of ${{ matrix.pack }}
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Node.js manifest check
run: |
cd src/
npm install
npm run start -- "assets/${{ matrix.pack }}"
cat ../${ENTRY_FOLDER}/${{ matrix.pack }}/theme.json