Skip to content

ci: define build, formatting, tests, examples as separate GH checks #23

ci: define build, formatting, tests, examples as separate GH checks

ci: define build, formatting, tests, examples as separate GH checks #23

Workflow file for this run

on:
pull_request:
branches:
- '**'
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare
uses: ./.github/actions/prepare
- name: Build
run: npm run build
code_formatting:
name: Code formatting
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare
uses: ./.github/actions/prepare
- name: Lint
run: npm run lint
- name: Prettier
run: npm run prettier
test:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare
uses: ./.github/actions/prepare
- name: Build
run: |
npx playwright install chromium
npm run test
examples:
name: Examples
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare
uses: ./.github/actions/prepare
- name: Build lib
run: npm run build
- name: Build
run: cd examples && npm run build
- name: Lint
run: cd examples && npm run lint
- name: Prettier
run: cd examples && npm run prettier
- name: Test
run: |
cd examples
npx playwright install chromium
npm run test