-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (43 loc) · 1.01 KB
/
ci.yml
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
45
46
47
48
name: Continuous Integration
on:
pull_request:
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '21.6.1'
# Install dependencies and run lint in the server directory
- name: Install server dependencies
run: |
cd server
npm install
- name: Run server lint
run: |
cd server
npm run lint
- name: Run server Jest tests
run: |
cd server
npm test -- --coverage
env:
TZ: 'America/New_York'
# Install dependencies, run lint, and tests in the client directory
- name: Install client dependencies
run: |
cd client
npm install
- name: Run client lint
run: |
cd client
npm run lint-fix
- name: Run client Jest tests
continue-on-error: true
run: |
cd client
npm test -- --coverage
env:
TZ: 'America/New_York'