File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ # This is a basic workflow to help you get started with Actions
2+
3+ name : CI
4+
5+ # Controls when the action will run.
6+ on :
7+ # Triggers the workflow on push or pull request events but only for the master branch
8+ push :
9+ branches : [ master ]
10+ pull_request :
11+ branches : [ master ]
12+
13+ # Allows you to run this workflow manually from the Actions tab
14+ workflow_dispatch :
15+
16+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
17+ jobs :
18+ build-components :
19+ runs-on : ubuntu-latest
20+
21+ steps :
22+ - name : Checkout codebase
23+ uses : actions/checkout@v2
24+ - name : Setup Node.js
25+ uses : actions/setup-node@v1
26+ with :
27+ node-version : ' 14'
28+
29+ - name : Cache node_modules
30+ uses : actions/cache@v2
31+ env :
32+ cache-name : cache-node-modules
33+ with :
34+ # npm cache files are stored in `~/.npm` on Linux/macOS
35+ path : ~/.npm
36+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
37+
38+ - name : Install dependencies
39+ run : npm i
40+
41+ - name : Build components
42+ run : npm run build-json
43+
44+ - name : Run tests
45+ run : npm run test
You can’t perform that action at this time.
0 commit comments