File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Frontend CI/CD
2+
3+ on :
4+ push :
5+ paths :
6+ - client/**
7+ branches :
8+ - main
9+ - master
10+ pull_request :
11+ paths :
12+ - client/**
13+ branches :
14+ - main
15+ - master
16+
17+ jobs :
18+ ci :
19+ runs-on : ${{ matrix.os }}
20+
21+ strategy :
22+ matrix :
23+ os : [ubuntu-latest]
24+ node : [16]
25+
26+ steps :
27+ - name : Checkout 🛎
28+ uses : actions/checkout@master
29+
30+ - name : Setup node env 🏗
31+ uses : actions/setup-node@v3.3.0
32+ with :
33+ node-version : ${{ matrix.node }}
34+ check-latest : true
35+
36+ - name : Get yarn cache directory path 🛠
37+ id : yarn-cache-dir-path
38+ run : echo "::set-output name=dir::$(yarn cache dir)"
39+
40+ - name : Cache node_modules 📦
41+ uses : actions/cache@v3.0.4
42+ id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
43+ with :
44+ path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
45+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
46+ restore-keys : |
47+ ${{ runner.os }}-yarn-
48+
49+ - name : Install dependencies 👨🏻💻
50+ run : yarn
51+ working-directory : client
52+
53+ - name : Run linter 👀
54+ run : yarn lint
55+ working-directory : client
56+
57+ - name : Run tests 🧪
58+ run : yarn test
59+ working-directory : client
60+
61+ - name : Upload Coverage ☂️
62+ uses : codecov/codecov-action@v3.1.0
You can’t perform that action at this time.
0 commit comments