Skip to content

Implement multiple reports to compare within vscode #4

Implement multiple reports to compare within vscode

Implement multiple reports to compare within vscode #4

Workflow file for this run

name: Run Tests On Comment
on:
workflow_dispatch:
issue_comment:
types: [created]
jobs:
run-tests:
if: |
github.event.issue.pull_request &&
contains(github.event.comment.body, 'run tests') &&
(
github.event.comment.author_association == 'OWNER' ||
github.event.comment.author_association == 'MEMBER' ||
github.event.comment.author_association == 'COLLABORATOR'
)
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
steps:
- name: Checkout PR branch
uses: actions/checkout@v4
with:
ref: refs/pull/${{ github.event.issue.number }}/head
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Run TypeScript check
run: npm run lint
- name: Run tests
run: npm test
- name: Build extension
run: npm run build