forked from Azure/appservice-settings
-
-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (37 loc) · 920 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build_test_job:
name: 'Build and test job'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
steps:
- name: 'Checking out repo code'
uses: actions/checkout@v4
- name: 'Setup Node.js'
uses: actions/setup-node@v4
with:
node-version: '20'
- name: 'Validate build'
run: |
npm install
npm run build
- name: 'Run L0 tests'
run: |
npm run test
# validate if the dist folder has no changes that are not commited
- name: Check for uncommitted changes
shell: pwsh
run: |
if ((git status --porcelain).Length -ne 0) {
Write-Output "dist folder has changes that are not committed"
exit 1
}