d65683434d
* Convert tests to vitest * fix git tests * Cleanup * Convert ignore comments * address code review comments
91 lines
1.9 KiB
YAML
91 lines
1.9 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request: {}
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
runs-on: 'ubuntu-latest'
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: '24'
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Lint
|
|
run: npm run lint
|
|
|
|
test:
|
|
name: Test (Node)
|
|
runs-on: ${{ matrix.operating-system }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
operating-system: ['ubuntu-latest', 'windows-latest']
|
|
# https://nodejs.org/en/about/releases/
|
|
node-version: ['20', '22', '24']
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Test
|
|
run: npm run test
|
|
|
|
# TODO: Re-enable integration tests once webpack/rollup compatibility is resolved
|
|
# - name: Test (Integration)
|
|
# run: |
|
|
# cd ./tests/integration/rollup-test && ./test.sh && cd -
|
|
# cd ./tests/integration/webpack-babel-test && ./test.sh && cd -
|
|
# cd ./tests/integration/webpack-test && ./test.sh && cd -
|
|
|
|
browser:
|
|
name: Test (Browser)
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: '24'
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Install Playwright
|
|
run: |
|
|
npx playwright install-deps
|
|
npx playwright install
|
|
|
|
- name: Build
|
|
run: npx grunt prepare
|
|
|
|
- name: Test
|
|
run: |
|
|
npm run test:browser-smoke
|
|
npm run test:browser
|