ci: Switch to version 4 of GitHub artifact actions (#31357)

* ci: Switch to version 4 of GitHub artifact actions

This switches to version 4 of the GitHub artifact actions, which
requires producing a single artifact per job and adding merge steps. In
addition, the names of artifacts are standardized:

- Build: <profile>-binary-<platform>
- Full WPT results (only on failure): wpt-full-logs-<platform>-<layout>
- Filtered WPT results (only on failure): wpt-filtered-logs-<platform>-<layout>

* Delete merged build timings and combine with Result job

* Always archives logs even after test failures

* Correct the name of the log files for WPT import
This commit is contained in:
Martin Robinson 2024-02-17 17:59:43 +01:00 committed by GitHub
parent d5c9e569bf
commit 1cc546c4fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 144 additions and 133 deletions

View file

@ -31,8 +31,12 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 2
# Download all artifacts
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: wpt-full-logs-linux-layout-2013
- uses: actions/download-artifact@v4
with:
name: wpt-full-logs-linux-layout-2020
- name: Prep environment
run: |
python3 -m pip install --upgrade pip
@ -52,8 +56,8 @@ jobs:
export CURRENT_DATE=$(date +"%d-%m-%Y")
echo $CURRENT_DATE
echo "CURRENT_DATE=$CURRENT_DATE" >> $GITHUB_ENV
./mach update-wpt --legacy-layout wpt-logs-linux-layout-2013/test-wpt.*.log
./mach update-wpt wpt-logs-linux-layout-2020/test-wpt.*.log
./mach update-wpt linux-layout-2013/*.log --legacy-layout
./mach update-wpt linux-layout-2020/*.log
git add tests/wpt/meta tests/wpt/meta-legacy-layout
git commit -a --amend --no-edit
- name: Push changes