Explorar o código

GitHub Action: make fix-all (v3) (#8096)

Can be triggered by writting a comment: `/fix-all`
Follow-up of:
* https://github.com/FreshRSS/FreshRSS/pull/8094
* https://github.com/FreshRSS/FreshRSS/pull/8095

Fix `composer install` and `npm install`
Alexandre Alapetite hai 5 meses
pai
achega
21d261f9f0
Modificáronse 1 ficheiros con 21 adicións e 0 borrados
  1. 21 0
      .github/workflows/commands.yml

+ 21 - 0
.github/workflows/commands.yml

@@ -64,6 +64,27 @@ jobs:
           repository: ${{ fromJSON(steps.pr.outputs.result).repo.full_name }}
           ref: ${{ fromJSON(steps.pr.outputs.result).ref }}
 
+      - name: Use Composer cache
+        id: composer-cache
+        uses: actions/cache@v4
+        with:
+          path: vendor
+          key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
+          restore-keys: |
+            ${{ runner.os }}-php-
+
+      - name: Run Composer install
+        run: composer install --prefer-dist --no-progress
+        if: steps.composer-cache.outputs.cache-hit != 'true'
+
+      - name: Uses Node.js
+        uses: actions/setup-node@v5
+        with:
+          node-version: lts/*
+          cache: npm
+
+      - run: npm ci
+
       - name: Run make fix-all
         id: fix
         run: |