Skip to content

Commit 1e16e7b

Browse files
#40 Build and pack Nodejs action
1 parent 1d539b1 commit 1e16e7b

File tree

7 files changed

+4550
-50
lines changed

7 files changed

+4550
-50
lines changed

.github/workflows/dotnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
dotnet-version: 5.0.x
2121
- name: Build, restore, test
2222
shell: pwsh
23-
run: ./pipelines/build.ps1
23+
run: ./pipelines/build-dotnet.ps1

.github/workflows/nodejs.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Node.js CI
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
pull_request:
8+
branches: [ main ]
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
matrix:
17+
node-version: [12.x, 14.x, 16.x]
18+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
cache: 'npm'
27+
- name: Build and pack Nodejs
28+
shell: bash
29+
run: ./pipelines/build-nodejs.sh

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,10 @@
1010
# PowerPoint temporary
1111
~$*.ppt*
1212
# Visio autosave temporary files
13-
*.~vsd*
13+
*.~vsd*
14+
15+
# Funcpack
16+
.funcpack
17+
18+
# Build temp package lock
19+
pipelines/package-lock.json
Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
{
2-
"bindings": [
3-
{
4-
"type": "eventGridTrigger",
5-
"name": "eventGridEvent",
6-
"direction": "in"
7-
},
8-
{
9-
"type": "documentDB",
10-
"name": "document",
11-
"databaseName": "RideShare",
12-
"collectionName": "Archive",
13-
"createIfNotExists": false,
14-
"connection": "DocDbConnectionStringKey",
15-
"direction": "out"
16-
}
17-
],
18-
"disabled": false
19-
}
2+
"bindings": [
3+
{
4+
"type": "eventGridTrigger",
5+
"name": "eventGridEvent",
6+
"direction": "in"
7+
},
8+
{
9+
"type": "documentDB",
10+
"name": "document",
11+
"databaseName": "RideShare",
12+
"collectionName": "Archive",
13+
"createIfNotExists": false,
14+
"connection": "DocDbConnectionStringKey",
15+
"direction": "out"
16+
}
17+
],
18+
"disabled": false,
19+
"_originalEntryPoint": false,
20+
"_originalScriptFile": "index.js",
21+
"scriptFile": "../.funcpack/index.js",
22+
"entryPoint": "EVGH_TripExternalizations2CosmosDB"
23+
}

0 commit comments

Comments
 (0)