Skip to content

JS: Add unit tests (with coverage) & use URL object instead of strings to construct some URLs #16

JS: Add unit tests (with coverage) & use URL object instead of strings to construct some URLs

JS: Add unit tests (with coverage) & use URL object instead of strings to construct some URLs #16

Workflow file for this run

# Runs jest based unit tests for frontend javascript and @jupyterhub/binderhub-client

Check failure on line 1 in .github/workflows/jest.yml

View workflow run for this annotation

GitHub Actions / JS Unit tests

Invalid workflow file

The workflow is not valid. .github/workflows/jest.yml: Anchors are not currently supported. Remove the anchor 'paths'
name: "JS Unit tests"
on:
pull_request:
paths: &paths
- "binderhub/static/js/**"
- "js/packages/binderhub-client/**"
push:
paths: *paths
branches-ignore:
- "dependabot/**"
- "pre-commit-ci-update-config"
- "update-*"
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Setup dependencies"
run: |
npm install
- name: "Run all unit tests"
run: |
npm test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3