-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.29 KB
/
Build-And-Test-App.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
45
46
47
48
49
50
name: "Build-And-Test-Advance-App"
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
app-advance-windows:
name: "Advance App (Windows)"
runs-on: windows-latest
steps:
- name: 📚 Get Repository
uses: actions/[email protected]
- name: 🟢 Install Node.js 18
uses: actions/setup-node@v4
with:
always-auth: true
node-version: 18
scope: '@naveed235812'
registry-url: https://registry.npmjs.org
- name: Install Advance App Dependencies
run: npm install
- name: Build Advance App
run: npm run build
- name: Execute Advance App Tests
run: npm run test
# # This step was added to show the output
# - name: Execute Variant (Demo Purposes)
# run: node ./output/RunAdvanceApp.js
- name: Package Advance App
run: npm pack
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
- name: Publish Advance App
uses: actions/upload-artifact@v3
with:
name: app-advance-windows
path: ./naveed235812-app-advance-windows*.tgz
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}