forked from CDCgov/phdi-playground
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (41 loc) · 854 Bytes
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
name: Test
on:
workflow_call:
workflow_dispatch:
pull_request:
branches:
- "**"
push:
branches:
- main
jobs:
lint-frontend:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: ./front-end
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install modules
run: npm install
- name: Run linter
run: npm run lint
test:
name: Run Jest Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 16
- name: Install dependencies
working-directory: ./front-end
run: npm install
- name: Run Jest Tests
working-directory: ./front-end
run: npm run test