File tree 1 file changed +19
-26
lines changed
1 file changed +19
-26
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
- name : CI-CD
1
+ name : Check and Build
3
2
4
- # Controls when the action will run.
5
3
on :
6
- # Triggers the workflow on push or pull request events but only for the main branch
7
4
push :
8
- branches : [main,develop]
5
+ branches :
6
+ - main
7
+ - develop
9
8
pull_request :
10
- branches : [main,develop]
11
- # # Allows you to run this workflow manually from the Actions tab
12
- # workflow_dispatch:
9
+ branches :
10
+ - main
11
+ - develop
12
+ workflow_dispatch :
13
13
14
- # A workflow run is made up of one or more jobs that can run sequentially or in parallel
15
14
jobs :
16
- # This workflow contains multiple jobs
17
- build_test :
18
- # The type of runner that the job will run on
15
+ build :
19
16
runs-on : ubuntu-latest
20
17
strategy :
21
18
matrix :
22
- node-version : [14.x]
23
-
24
- # Steps represent a sequence of tasks that will be executed as part of the job
19
+ node-version : [16.x]
25
20
steps :
26
- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
27
- - uses : actions/checkout@v2
21
+ - name : Checkout repository
22
+ uses : actions/checkout@v4
28
23
29
- - name : setup node
30
- uses : actions/setup-node@master
24
+ - name : Setup Node.js
25
+ uses : actions/setup-node@v4
31
26
with :
32
27
node-version : ${{ matrix.node-version }}
33
28
34
- # install applicaion dependencies
35
29
- name : Install dependencies
36
- run : |
37
- npm install
38
- # build and test the apps
39
- - name : build
40
- run : |
41
- npm run build
30
+ run : npm install
31
+
32
+ - name : Build
33
+ run : npm run build
34
+
You can’t perform that action at this time.
0 commit comments