Skip to content

Transcription Layer #851

Transcription Layer

Transcription Layer #851

Workflow file for this run

name: ci
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: ${{ matrix.friendlyName }} ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
arch:
- x64
include:
- os: ubuntu-latest
friendlyName: Linux
- os: macos-latest
friendlyName: macOS
- os: windows-latest
friendlyName: Windows
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
- name: Install and build dependencies
run: npm clean-install --no-progress
- name: Workaround node-gyp issue 2915
if: matrix.os == 'macos-latest'
run: python3 -m pip install setuptools
- name: Rebuild native dependencies
run: node scripts/rebuild --force --arch ${{ matrix.arch }}
- name: Lint
run: npm run lint
- name: Create production bundle
run: npm run rollup
env:
npm_config_arch: ${{ matrix.arch }}
- name: Run main/renderer tests
if: matrix.os != 'ubuntu-latest'
run: npm test
shell: bash
- name: Run main/renderer tests with coverage report
if: matrix.os == 'ubuntu-latest'
run: xvfb-run --auto-servernum --server-num=1 npm run coverage
- name: Send coverage report to Coveralls
if: matrix.os == 'ubuntu-latest'
continue-on-error: true
uses: coverallsapp/github-action@v2
with:
github-token: ${{ github.token }}