Skip to content

Test PR test result comment #112

Test PR test result comment

Test PR test result comment #112

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Tests
on:
pull_request:
branches: [develop, main]
permissions:
contents: read
pull-requests: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
- run: npm ci
- name: Run extension tests
run: xvfb-run -a npm test
- name: Comment Test Results to PR
run: npx github-actions-ctrf pull-request ctrf/ctrf-report.json --overwrite-comment --comment-tag "${{ github.workflow }}-${{ github.job }}"
if: always()
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: ctrf-report
path: ctrf/ctrf-report.json