Skip to content

Merge pull request #2226 from leslielazzarino/update-yarn #90

Merge pull request #2226 from leslielazzarino/update-yarn

Merge pull request #2226 from leslielazzarino/update-yarn #90

# SPDX-FileCopyrightText: Meta Platforms, Inc. and its affiliates
# SPDX-FileCopyrightText: TNG Technology Consulting GmbH <https://www.tngtech.com>
#
# SPDX-License-Identifier: Apache-2.0
name: Build and E2E Test
on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- os: ubuntu-latest
SHIP: ship-linux
E2E: export DISPLAY=:99 && Xvfb $DISPLAY -screen 0 1920x1080x24 & yarn test:e2e
- os: macos-latest
SHIP: ship-mac
E2E: yarn test:e2e
- os: windows-latest
SHIP: ship-win
E2E: yarn test:e2e
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Install Node.js and yarn
uses: actions/setup-node@v3
with:
cache: 'yarn'
node-version: 18
- run: yarn install --immutable
- name: Increase watches
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
if: matrix.os == 'ubuntu-latest'
# Disable e2e tests as we had many timeouts and issues with the caching of node modules
# - name: Run end2end tests
# run: ${{ matrix.E2E }}
- name: Build app
run: yarn ${{ matrix.SHIP }}