artifact #20
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Benchmarks' | |
on: | |
push: | |
branches: self-hosted-temp | |
repository_dispatch: | |
types: [start-example-workflow] | |
workflow_dispatch: | |
inputs: | |
name: | |
description: 'name' | |
home: | |
description: 'home' | |
jobs: | |
test: | |
name: Benchmark | |
runs-on: ubuntu-latest | |
container: cimg/node:20.18-browsers | |
# runs-on: [self-hosted, Linux, X64] | |
steps: | |
# - name: Docker | |
# uses: docker://cimg/node:20.18-browsers | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- run: sudo corepack enable | |
shell: bash | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: yarn | |
- name: Install dependencies | |
run: yarn | |
shell: bash | |
# - run: yarn build:test | |
- run: yarn webpack --test | |
- name: Install prereqs | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y xvfb | |
sudo apt-get -y install xorg xvfb gtk2-engines-pixbuf | |
sudo apt-get -y install dbus-x11 xfonts-base xfonts-100dpi xfonts-75dpi xfonts-cyrillic xfonts-scalable | |
Xvfb -ac :99 -screen 0 1280x1024x16 & | |
export DISPLAY=:99 | |
# - name: Debugging with tmate | |
# uses: ./.github/actions/actions-tmate | |
- name: Run the benchmark | |
run: yarn benchmark:chrome --out test-artifacts/chrome/benchmark/pageload.json --retries 2 | |
- name: 'Upload Artifact' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: pageload | |
path: test-artifacts/chrome/benchmark/pageload.json | |
retention-days: 5 |