-
Notifications
You must be signed in to change notification settings - Fork 25
60 lines (47 loc) · 1.5 KB
/
pr-to-dev.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
51
52
53
54
55
56
57
58
59
60
name: PRs to Dev
on:
pull_request:
branches: [development]
jobs:
'build-test-package-artifacts':
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 16
cache: yarn
- name: Install packages with Yarn
run: yarn install --frozen-lockfile
- name: Build with webpack
run: yarn build
- name: Run unittests
run: yarn checks
# - name: Copy files for E2E tests (!macOS)
# if: matrix.os != 'macos-latest'
# shell: bash
# run: cp -R ./build/* ./src/electron
# - name: Run E2E tests with TestCafe action (!macOS)
# if: matrix.os != 'macos-latest'
# uses: DevExpress/testcafe-action@latest
# env:
# NODE_ENV: test
# with:
# args: 'electron:./src/electron ./tests-e2e'
# - name: Remove files for E2E tests (!macOS)
# if: matrix.os != 'macos-latest'
# shell: bash
# run: rm -rf ./src/electron/dist ./src/electron/main.js
- name: Package with electron-builder
run: yarn package:x64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 'Upload apps to artifact store'
uses: kittaakos/upload-artifact-as-is@v0
with:
path: release/TokelPlatform*