Skip to content

test: Fix test failure after merge #1337

test: Fix test failure after merge

test: Fix test failure after merge #1337

Workflow file for this run

name: 'Build & Test'
on:
push:
branches:
- master
- release/**
pull_request:
env:
ELECTRON_CACHE_DIR: ${{ github.workspace }}
FAILURE_LOG: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: 'package.json'
- name: Install
run: yarn install
- name: Build
run: yarn build
- name: Pack
run: yarn pack
- name: Archive Artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ github.sha }}
path: |
${{ github.workspace }}/*.tgz
- id: set-matrix
run: echo "matrix=$(node ./scripts/e2e-test-versions.js)" >> "$GITHUB_OUTPUT"
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: 'package.json'
- run: yarn install
- name: Run Linter
run: yarn lint
test:
name: Unit Tests
needs: build
runs-on: ${{ matrix.os }}
strategy:
# we want that the matrix keeps running, default is to cancel all if one fails.
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: 'package.json'
- run: yarn install
- name: Run Unit Tests
run: yarn test
e2e:
name: E2E Tests
needs: build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
electron: ${{ fromJson(needs.build.outputs.matrix) }}
env:
ELECTRON_VERSION: ${{ matrix.electron }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: 'package.json'
- run: yarn install
- name: Run E2E Tests
run: yarn e2e