Skip to content

Commit 3b0ed04

Browse files
author
Workflow Sync Bot
committed
Test JS Unit Workflow File Sync [Runner ID: 90]
1 parent 1330834 commit 3b0ed04

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/test-js-unit.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test JS Unit
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
paths:
7+
- src/js/**
8+
# Once daily at 00:00 UTC.
9+
# schedule:
10+
# - cron: '0 0 * * *'
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ 'pull_request' == github.event_name && github.head_ref || github.sha }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
test:
18+
name: "Run JS Unit Tests"
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v2
24+
25+
- name: Setup Node
26+
uses: actions/setup-node@v2
27+
with:
28+
node-version: '16'
29+
cache: 'npm'
30+
31+
- name: Install Node dependencies
32+
run: npm ci
33+
34+
- name: Run test suite
35+
run: npm run test:unit

0 commit comments

Comments
 (0)