-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (42 loc) · 1.1 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
49
50
name: CI
on:
push:
branches:
- "main"
- "development"
pull_request:
branches:
- "main"
- "development"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: npm install
- name: Run tests with coverage
run: npm test -- --coverage
- name: Upload Coverage Artifact
uses: actions/upload-artifact@v2
with:
name: coverage
path: ./coverage
- name: Download Coverage Artifacts
uses: actions/download-artifact@v2
with:
name: coverage
- name: Coveralls GitHub Action
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.COVERALLS_REPO_TOKEN }}
# deploy_vercel:
# needs: [test_frontend, upload_coverage]
# uses: ./.github/workflows/deploy_vercel.yml
# secrets: inherit
#test_frontend:
# uses: ./.github/workflows/test_frontend.yml
# secrets: inherit
#test_backend:
# uses: ./.github/workflows/test_backend.yml
# secrets: inherit