Skip to content

Commit b6da155

Browse files
#40 build SPA
1 parent 1296e7d commit b6da155

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/spa.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: spa build
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+
defaults:
15+
run:
16+
working-directory: ./web/serverless-microservices-web
17+
18+
strategy:
19+
matrix:
20+
# https://docs.microsoft.com/en-us/azure/azure-functions/functions-versions?tabs=csharp%2Cv4#languages
21+
node-version: [14.x, 12.x, 10.x]
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: Use Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@v2
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
cache: 'npm'
30+
cache-dependency-path: ./web/serverless-microservices-web
31+
- run: npm install
32+
- run: npm run build

0 commit comments

Comments
 (0)