-
Notifications
You must be signed in to change notification settings - Fork 5
63 lines (58 loc) · 1.65 KB
/
update-scores.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Nightly job to update internal WPT dashboard
on:
# Run an 2.5 hours after servo nightly job
schedule:
- cron: '0 8 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
env:
RUST_BACKTRACE: 1
SHELL: /bin/bash
jobs:
wpt-for-layout-2020:
uses: ./.github/workflows/run-wpt.yml
with:
layout-engine: 2020
artifact-name: wpt-chunks-2020
process-new-run:
name: Process all chunks and update metrics
runs-on: ubuntu-22.04
needs:
- wpt-for-layout-2020
steps:
- name: Checkout dashboard repo
uses: actions/checkout@v3
with:
ref: main
- name: Download wpt results for layout 2020
uses: actions/download-artifact@v3
with:
name: wpt-chunks-2020
path: wpt-chunks-2020
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- name: Process new test results
run: |
CURRENT_DATE=$(date +"%Y-%m-%d")
mkdir -p runs-2020
node index.js --add wpt-chunks-2020 "$CURRENT_DATE"
git config user.name github-actions
git config user.email [email protected]
git add runs-2020/${CURRENT_DATE}.xz
git commit -m "Add runs for $CURRENT_DATE"
git push
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v1
with:
path: 'site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1