Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Better send process #1964

Better send process

Better send process #1964

Workflow file for this run

name: Test
on:
push:
branches: [master]
pull_request:
jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run lint
- run: npm audit --production
- run: npm test
electron-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v2
- id: get-os
run: |
os=$(echo ${{ matrix.os }} | cut -d- -f1)
echo "::set-output name=os::$os"
shell: bash
- run: echo "${{ steps.get-os.outputs.os }}"
shell: bash
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '16.x'
- run: npm ci
shell: bash
- run: npm run-script electron-pack-${{ steps.get-os.outputs.os }}
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}