Changeset 56506
- Timestamp:
- 09/01/2023 05:24:56 PM (16 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/performance.yml
r56402 r56506 45 45 BASE_TAG: '6.1.1' 46 46 LOCAL_DIR: build 47 TARGET_REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || '' }} 48 TARGET_SHA: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }} 47 49 48 50 jobs: … … 66 68 # - Run performance tests (current commit). 67 69 # - Print performance tests results. 70 # - Check out target commit (target branch or previous commit). 71 # - Install npm dependencies. 72 # - Build WordPress. 73 # - Run performance tests (previous/target commit). 74 # - Print target performance tests results. 75 # - Reset to original commit. 68 76 # - Set the environment to the baseline version. 69 77 # - Run baseline performance tests. 70 # - Print base line performance tests results. 78 # - Print baseline performance tests results. 79 # - Compare results with base. 80 # - Add workflow summary. 71 81 # - Set the base sha. 72 82 # - Set commit details. … … 153 163 154 164 - name: Print performance tests results 155 run: "node ./tests/performance/results.js" 165 run: node ./tests/performance/results.js 166 167 - name: Check out target commit (target branch or previous commit) 168 run: | 169 if [[ -z "$TARGET_REF" ]]; then 170 git fetch -n origin $TARGET_SHA 171 else 172 git fetch -n origin $TARGET_REF 173 fi 174 git reset --hard $TARGET_SHA 175 176 - name: Install npm dependencies 177 run: npm ci 178 179 - name: Build WordPress 180 run: npm run build 181 182 - name: Run target performance tests (base/previous commit) 183 run: npm run test:performance -- --prefix=before 184 185 - name: Print target performance tests results 186 run: node ./tests/performance/results.js --prefix=before 187 188 - name: Reset to original commit 189 run: git reset --hard $GITHUB_SHA 156 190 157 191 - name: Set the environment to the baseline version … … 163 197 run: npm run test:performance -- --prefix=base 164 198 165 - name: Print base line performance tests results 166 run: "node ./tests/performance/results.js --prefix=base" 199 - name: Print baseline performance tests results 200 run: node ./tests/performance/results.js --prefix=base 201 202 - name: Compare results with base 203 run: node ./tests/performance/compare-results.js ${{ runner.temp }}/summary.md 204 205 - name: Add workflow summary 206 run: cat ${{ runner.temp }}/summary.md >> $GITHUB_STEP_SUMMARY 167 207 168 208 - name: Set the base sha
Note: See TracChangeset
for help on using the changeset viewer.