Skip to content

Merge pull request #2970 from serge-web/core-mapping-admin #645

Merge pull request #2970 from serge-web/core-mapping-admin

Merge pull request #2970 from serge-web/core-mapping-admin #645

# 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