Debian Codegraph @

.github/workflows/test-jsx.yml

raw
1 # This is a GitHub workflow defining a set of jobs with a set of steps.
2 # ref: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
3 #
4 name: Test jsx (admin-react.js)
5
6 on:
7 pull_request:
8 paths:
9 - "jsx/**"
10 - ".github/workflows/test-jsx.yml"
11 push:
12 paths:
13 - "jsx/**"
14 - ".github/workflows/test-jsx.yml"
15 branches-ignore:
16 - "dependabot/**"
17 - "pre-commit-ci-update-config"
18 tags:
19 - "**"
20 workflow_dispatch:
21
22 permissions:
23 contents: read
24
25 jobs:
26 # The ./jsx folder contains React based source code files that are to compile
27 # to share/jupyterhub/static/js/admin-react.js. The ./jsx folder includes
28 # tests also has tests that this job is meant to run with `npm test`
29 # according to the documentation in jsx/README.md.
30 test-jsx-admin-react:
31 runs-on: ubuntu-22.04
32 timeout-minutes: 5
33
34 steps:
35 - uses: actions/checkout@v4
36 - uses: actions/setup-node@v4
37 with:
38 node-version: "20"
39
40 - name: install jsx
41 run: |
42 cd jsx
43 npm ci
44
45 - name: test
46 run: |
47 cd jsx
48 npm test