Initial project setup - add documents and build workflow #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 dependencies and build all packages | |
run: yarn | |
- name: Build example applications | |
run: | | |
yarn browser build | |
yarn electron build | |
- name: Lint with ESLint | |
run: yarn lint | |
- name: Run tests | |
run: yarn test |