Skip to content

Commit

Permalink
chore: add CI build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ndoschek committed Oct 15, 2024
1 parent 47fbdb2 commit 6c64c32
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/build-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
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
cache: yarn
cache-dependency-path: yarn.lock

- name: Install Python 3
uses: actions/[email protected]
with:
python-version: '3.11'

- name: Install dependencies and build all packages
run: yarn
env:
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

0 comments on commit 6c64c32

Please sign in to comment.