File tree Expand file tree Collapse file tree 6 files changed +43
-7
lines changed Expand file tree Collapse file tree 6 files changed +43
-7
lines changed Original file line number Diff line number Diff line change 5
5
pull_request :
6
6
types : [closed]
7
7
branches :
8
- - master
8
+ - test
9
9
10
10
jobs :
11
11
build-and-deploy :
15
15
- uses : actions/setup-node@v1
16
16
with :
17
17
node-version : ' 10.x'
18
- # - name: 'run npm'
19
18
run : |
20
19
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
21
20
npm i -g azure-functions-core-tools@core --unsafe-perm true
Original file line number Diff line number Diff line change
1
+ name : CD process to deploy to AzureFuncions
2
+
3
+ on :
4
+ # Trigger the workflow on pull request but only for the master branch
5
+ push :
6
+ branches :
7
+ - test
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+ strategy :
13
+ matrix :
14
+ node-version : [10.x]
15
+ steps :
16
+ - name : Azure Login
17
+ uses : azure/login@v1
18
+ with :
19
+ creds : ${{ secrets.AZURE_CREDENTIALS }}
20
+
21
+ - name : Checkout Repository
22
+ uses : actions/checkout@master
23
+
24
+ - uses : actions/setup-node@v1
25
+ with :
26
+ node-version : ${{ matrix.node-version }}
27
+
28
+
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ local.settings.json
25
25
26
26
node_modules
27
27
28
- AutomaticClockOuts / node_modules
28
+
29
29
.idea /
30
30
.vscode /
31
- serverless.yml
31
+ serverless.yml
32
+ .serverless
Original file line number Diff line number Diff line change
1
+ help : Makefile
2
+ @sed -n ' s/^## //p' $<
3
+
4
+ # # npm-install-functions -> Added dependencies in case that the functions need, add manually the command and Makefile
5
+ deploy-nodejs-functions :
6
+ cd nodejs-functions ; pwd ; $(MAKE ) functions-with-dependencies
7
+
Original file line number Diff line number Diff line change 1
1
help : Makefile
2
2
@sed -n ' s/^## //p' $<
3
3
4
- # # run -> run serverless function
5
- run :
6
- sls offline
4
+ # # npm-install-functions -> Added dependencies in case that the functions need, add manually the command and Makefile
5
+ functions-with-dependencies :
6
+ cd src/handlers/automatic-clock-outs ; pwd ; $(MAKE ) install
7
+
You can’t perform that action at this time.
0 commit comments