-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (32 loc) · 1.07 KB
/
test.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
name: Testes
on:
workflow_dispatch:
pull_request:
branches:
- master
jobs:
testes-unitarios-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: npm install
working-directory: ./frontend
- name: Install Angular CLI
run: npm install -g @angular/cli
working-directory: ./frontend
# - name: Set Test Reporter ID
# run: echo "CODECLIMATE_REPO_TOKEN=${{ secrets.CODECLIMATE_REPORTER_ID }}" >> $GITHUB_ENV
# - name: Run before-build command
# run: ./frontend/cc-test-reporter before-build
# Run Unit Tests
- name: Unit Tests
run: |
cd frontend
npm install karma-phantomjs-launcher
ng test --browsers ChromeHeadless --watch=false
# - name: Run after-build command
# run: |
# ./frontend/cc-test-reporter format-coverage --output coverage/codeclimate.json
# ./frontend/cc-test-reporter sum-coverage coverage/codeclimate.json
# ./frontend/cc-test-reporter upload-coverage