@@ -14,15 +14,16 @@ jobs:
1414 runs-on : ubuntu-latest
1515 outputs :
1616 has_changed : ${{ steps.files-changed.outputs.RSA_FILES_CHANGED }}
17+
1718 steps :
1819 - name : Checkout
19- uses : actions/checkout@v3
20+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2021 with :
2122 fetch-depth : 0
2223
2324 - name : Get updated JS files
2425 id : changed-files
25- uses : tj-actions/changed-files@v41
26+ uses : tj-actions/changed-files@2f7c5bfce28377bc069a65ba478de0a74aa0ca32 # v46.0.1
2627 with :
2728 files : |
2829 **/*.php
3940
4041 build :
4142 uses : 10up/restricted-site-access/.github/workflows/build-release-zip.yml@develop
43+
4244 cypress :
4345 runs-on : ubuntu-latest
4446 needs : [check-diffs, build]
@@ -48,14 +50,14 @@ jobs:
4850 core :
4951 - {name: 'WP latest', version: 'latest'}
5052 - {name: 'WP trunk', version: 'WordPress/WordPress#master'}
51- - {name: 'WP minimum', version: 'WordPress/WordPress#6.5 '}
53+ - {name: 'WP minimum', version: 'WordPress/WordPress#6.6 '}
5254
5355 steps :
5456 - name : Checkout
55- uses : actions/checkout@v3
57+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5658
5759 - name : Set PHP version
58- uses : shivammathur/setup-php@v2
60+ uses : shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
5961 with :
6062 php-version : ' 7.4'
6163 coverage : none
@@ -65,16 +67,18 @@ jobs:
6567 run : composer i
6668
6769 - name : Download build zip
68- uses : actions/download-artifact@v4
70+ uses : actions/download-artifact@b14cf4c92620c250e1c074ab0a5800e37df86765 # v4.2.0
6971 with :
7072 name : ${{ github.event.repository.name }}
7173 path : ${{ github.event.repository.name }}
74+
7275 - name : Display structure of downloaded files
7376 run : ls -R
7477 working-directory : ${{ github.event.repository.name }}
78+
7579 - name : Cache node_modules
7680 id : cache-node-modules
77- uses : actions/cache@v3
81+ uses : actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
7882 env :
7983 cache-name : cache-node-modules
8084 with :
@@ -83,10 +87,13 @@ jobs:
8387 ~/.cache
8488 ~/.npm
8589 key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
90+
8691 - name : Install dependencies
8792 run : npm install
93+
8894 - name : Set the core version and plugins config
8995 run : ./tests/bin/set-wp-config.js --core=${{ matrix.core.version }} --plugins=./${{ github.event.repository.name }},./tests/rsa-seeder
96+
9097 - name : Set up WP environment
9198 run : npm run env:start
9299
@@ -100,8 +107,9 @@ jobs:
100107 npx mochawesome-json-to-md -p ./tests/cypress/reports/mochawesome.json -o ./tests/cypress/reports/mochawesome.md
101108 npx mochawesome-report-generator tests/cypress/reports/mochawesome.json -o tests/cypress/reports/
102109 cat ./tests/cypress/reports/mochawesome.md >> $GITHUB_STEP_SUMMARY
110+
103111 - name : Make artifacts available
104- uses : actions/upload-artifact@v4
112+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
105113 if : failure()
106114 with :
107115 name : cypress-artifact
0 commit comments