Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Test PR test result comment #106

Merged
merged 7 commits into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,30 @@ on:
pull_request:
branches: [develop, main]

permissions:
contents: read
pull-requests: write

jobs:
build:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14.x
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
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ node_modules
*.vsix
*.cpuprofile
**/.vscode/settings.json
ctrf/
Loading
Loading