name: build

on:
  pull_request:
    paths-ignore:
     - 'docs/**'
     - 'dist/**'
     - 'typings/**'
  push:
    branches:
      - main

jobs:
  build:

    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [20.x, 22.x, 24.x]

    steps:
    - uses: actions/checkout@v3

    - name: Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v3
      with:
        node-version: ${{ matrix.node-version }}

    - name: npm install
      run: |
        npm ci
      env:
        CI: true

    - name: build
      run: |
        npm run build:full
      env:
        CI: true

    - name: test
      run: |
        npm run github-test
      env:
        CI: true

