-
Notifications
You must be signed in to change notification settings - Fork 8
63 lines (58 loc) · 1.57 KB
/
TEST.yml
File metadata and controls
63 lines (58 loc) · 1.57 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
name: TEST
permissions:
contents: read
on:
push:
branches:
- main
- develop
pull_request:
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-2022 ]
runs-on: ${{ matrix.os }}
env:
NODE_TLS_REJECT_UNAUTHORIZED: 0
IS_CI: true
BUILD_REF: ${{ github.event.pull_request.number || github.ref_name }}
BUILD_NUMBER: ${{ github.run_number }}-${{ github.run_id }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
- name: Install npm dependencies
run: npm install
- name: Test Modeler
run: |
npm install puppeteer
npm run test
- name: Get version (sets APP_VERSION)
id: get-version
run: bash ./scripts/get_version_for_artifact_name.sh
- name: Build distro (Linux)
if: ${{ runner.OS == 'Linux' }}
env:
ELECTRON_GET_USE_PROXY: true
run: npm run build -- --linux
- name: Build distro (MacOS)
if: ${{ runner.os == 'macOS' }}
env:
ELECTRON_GET_USE_PROXY: true
run: npm run build -- --mac
- name: Build distro (Windows)
if: ${{ runner.os == 'Windows' }}
env:
ELECTRON_GET_USE_PROXY: true
run: npm run build -- --win
- name: Upload build artifacts ${{ matrix.os }}
uses: actions/upload-artifact@v4
with:
name: fluxnova-modeler-${{ steps.get-version.outputs.APP_VERSION }}-${{ matrix.os }}
path: dist