-
Notifications
You must be signed in to change notification settings - Fork 46
48 lines (42 loc) · 1.17 KB
/
front.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: Test Front
on:
workflow_dispatch:
pull_request:
paths:
- front/**
push:
branches:
- dev
- staging
- prod
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: "yarn"
cache-dependency-path: front/yarn.lock
- name: install dependencies
run: yarn --cwd front install
- name: run front test suite
run: yarn --cwd front test-coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
# github runs PR workflows on the result of a merge commit.
# tell codecov the sha of the unmerged PR https://github.com/codecov/uploader/issues/525
override_commit: "${{ github.event.pull_request.head.sha }}"
name: codecov
flags: front
directory: ./front/test
files: cobertura-coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true
- name: build project
run: yarn --cwd front build
env:
CI: false