Skip to content

Fix/browser support sdk #151

Fix/browser support sdk

Fix/browser support sdk #151

name: PR Checks
on:
workflow_dispatch:
pull_request:
types:
- opened
- reopened
- synchronize
concurrency:
group: pr-checks-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: write
jobs:
test:
name: Node v${{ matrix.node-version }} Tests
runs-on: [self-hosted, Linux, medium, ephemeral]
strategy:
matrix:
node-version: [18, 20]
steps:
- name: Checkout repository
uses: actions/checkout@v3 # pin@v3
- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v4 # pin@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install packages
run: npm ci
- name: Run Jest Tests
run: npm run test
- name: Publish Test Report
uses: actionite/publish-unit-test-result-action@1e01e49081c6c4073913aa4b7980fa83e709f322 # pin@v2
if: ${{ !cancelled() }}
with:
check_name: Jest Node ${{ matrix.node-version }} Test Results
check_run_disabled: true
json_thousands_separator: ","
junit_files: "**/*.xml"