-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (31 loc) · 1.06 KB
/
tests.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
# 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