-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (43 loc) · 1.34 KB
/
release-on-tag.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
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Release-on-tag
on:
push:
branches:
- master
- develop
tags:
- "*"
jobs:
test:
name: Build/Test validation on release
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Setup repo
uses: actions/checkout@v2
- name: Use Node.js version ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Running dependency installation
run: yarn install
- name: Running project building
run: yarn build
- name: Running unit testing
run: yarn test-unit
- name: Install Playwright
run: npx playwright install --with-deps
- name : Running playwright testing
run: setsid yarn develop >/dev/null 2>&1 < /dev/null & sleep 1m & yarn test-playwright
- name: Build executable files
run: yarn pkg-build
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: /home/runner/work/serge/serge/executable/builds/*.zip