Skip to content

Initial project setup - add documents and build workflow #12

Initial project setup - add documents and build workflow

Initial project setup - add documents and build workflow #12

Workflow file for this run

name: CI
on:
pull_request:
paths:
- 'examples/**'
- 'ext/**'
- 'npm/**'
- '.github/workflows/build-ci.yml'
- '!**/*.md'
push:
branches:
- main
paths:
- 'examples/**'
- 'ext/**'
- 'npm/**'
- '.github/workflows/build-ci.yml'
- '!**/*.md'
permissions:
contents: read
jobs:
verify:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Node 20
uses: actions/[email protected]
with:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'
- name: Install tools and libraries
run: sudo apt-get install -y build-essential libx11-dev libxkbfile-dev libsecret-1-dev
- name: Use Python 3.11
uses: actions/[email protected]
with:
python-version: '3.11'
- name: Install and Build
shell: bash
run: |
yarn global add node-gyp
yarn --skip-integrity-check --network-timeout 100000
env:
NODE_OPTIONS: --max_old_space_size=4096
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build example applications
run: |
yarn browser build
yarn electron build
env:
NODE_OPTIONS: --max_old_space_size=4096
- name: Lint with ESLint
run: yarn lint
- name: Run tests
run: yarn test