@@ -7,9 +7,6 @@ on: pull_request
77permissions :
88 contents : read
99
10- env :
11- NODE_VERSION : " 20" # TODO: Extract automatically using another action
12-
1310jobs :
1411 matrix :
1512 runs-on : ubuntu-latest-low
1815 branches-min : ${{ steps.versions.outputs.branches-min }}
1916 steps :
2017 - name : Checkout app
21- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 .0.0
18+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 .0.2
2219 - name : Get version matrix
2320 id : versions
2421 uses : icewind1991/nextcloud-version-matrix@58becf3b4bb6dc6cef677b15e2fd8e7d48c0908f # v1.3.1
3330 with :
3431 nextcloud-version : ${{ needs.matrix.outputs.branches-min }}
3532 php-version : ${{ needs.matrix.outputs.php-min }}
36- node-version : ${{ env.NODE_VERSION }}
3733 install : true
3834 - name : Configure Nextcloud for testing
3935 run : |
@@ -42,18 +38,27 @@ jobs:
4238 php -f nextcloud/occ config:system:set overwritehost --value=localhost
4339 php -f nextcloud/occ config:system:set overwrite.cli.url --value=https://localhost
4440 - name : Check out the app
45- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
41+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
42+ with :
43+ path : nextcloud/apps/contacts
44+ - name : Read package.json node and npm engines version
45+ uses : skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
46+ id : package-engines-versions
4647 with :
48+ fallbackNode : ' ^24'
49+ fallbackNpm : ' ^11'
4750 path : nextcloud/apps/contacts
51+ - name : Set up node ${{ steps.package-engines-versions.outputs.nodeVersion }}
52+ uses : actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
53+ with :
54+ node-version : ${{ steps.package-engines-versions.outputs.nodeVersion }}
55+ - name : Set up npm ${{ steps.package-engines-versions.outputs.npmVersion }}
56+ run : npm i -g 'npm@${{ steps.package-engines-versions.outputs.npmVersion }}'
4857 - name : Install php dependencies
4958 working-directory : nextcloud/apps/contacts
5059 run : composer install
5160 - name : Install the app
5261 run : php -f nextcloud/occ app:enable contacts
53- - name : Set up node ${{ env.NODE_VERSION }}
54- uses : actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
55- with :
56- node-version : ${{ env.NODE_VERSION }}
5762 - name : Install npm dependencies
5863 working-directory : nextcloud/apps/contacts
5964 run : npm ci
@@ -76,10 +81,10 @@ jobs:
7681 - name : Run Playwright tests
7782 working-directory : nextcloud/apps/contacts
7883 run : DEBUG=pw:api npx playwright test
79- - uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5
84+ - uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
8085 if : always()
8186 with :
82- name : playwright-report-${{ github.event.number }}-nc${{ needs.matrix.outputs.branches-min }}-php${{ needs.matrix.outputs.php-min }}-node${{ env.NODE_VERSION }}
87+ name : playwright-report-${{ github.event.number }}-nc${{ needs.matrix.outputs.branches-min }}-php${{ needs.matrix.outputs.php-min }}-node${{ steps.package-engines-versions.outputs.nodeVersion }}
8388 path : nextcloud/apps/contacts/playwright-report/
8489 retention-days : 14
8590 - name : Print server logs
0 commit comments