Skip to content

testing release

testing release #58

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Node.js CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-on-mac:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
- run: yarn
- run: cd Frontend && yarn
- run: cd Backend && yarn
- run: yarn upgrade
- run: |
npm run electron:build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
mac_certs: ${{ secrets.mac_certs }}
mac_certs_password: ${{ secrets.mac_certs_password }}
build-on-windows:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
- run: yarn
- run: cd Frontend && yarn
- run: cd Backend && yarn
- run: yarn upgrade
- run: |
npm run electron:build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}