-
Notifications
You must be signed in to change notification settings - Fork 18
47 lines (42 loc) · 1.28 KB
/
github-actions-workflow.yml
File metadata and controls
47 lines (42 loc) · 1.28 KB
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
name: CI/CD
run-name: ${{ github.actor }} is running ${{ github.workflow }} on ${{ github.repository }}
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
node-version: [12.x]
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: Testing frontend
run: |
ls
cd client
npm install
npm test
- name: Testing backend
run: |
cd backend
npm install
npm test
# - name: Publish code coverage
# uses: paambaati/codeclimate-action@v3.2.0
# env:
# CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
# with:
# coverageLocations: |
# ${{github.workspace}}/client/coverage/lcov.info:lcov
# ${{github.workspace}}/server/coverage/lcov.info:lcov