-
Notifications
You must be signed in to change notification settings - Fork 20
41 lines (33 loc) · 923 Bytes
/
node.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
name: Node CI (django-ai-assistant-client)
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install dependencies
working-directory: ./frontend
run: |
npm install
- name: Run ci
working-directory: ./frontend
run: |
npm ci
- name: Run build
working-directory: ./frontend
run: |
npm run build
- name: Run tests
working-directory: ./frontend
run: |
npm test
# When the repo becomes public:
# 1. Add the COVERALLS_REPO_TOKEN to GitHub secrets
# 2. Uncomment the lines below
# npm run coveralls
# env:
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}