Skip to content

Commit

Permalink
Try in gh comment
Browse files Browse the repository at this point in the history
  • Loading branch information
peaBerberian committed Jan 17, 2025
1 parent 3162a91 commit ebc9556
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/perfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ on:
jobs:
perf-tests:
runs-on: [ubuntu-latest]
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
Expand All @@ -16,10 +18,21 @@ jobs:
# needed for integration & memory tests codecs support
- run:
sudo add-apt-repository multiverse && sudo apt update && sudo apt install -y
ubuntu-restricted-extras
ubuntu-restricted-extras -o tmp-perf.md
- run: npm ci
- run: export DISPLAY=:99
- run: sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional
- run:
node tests/performance/run.mjs -b $GITHUB_BASE_REF -u
https://github.com/canalplus/rx-player.git
- name: Post comment
uses: actions/github-script@v7
with:
script: |
const { readFileSync } = require('fs');
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: readFileSync("./tmp-perf.md"),
})

0 comments on commit ebc9556

Please sign in to comment.