mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2026-02-06 10:46:46 +00:00
- Fix pnpm version mismatch in test_next_server.yml (8 → auto-detect 10) - Add concurrency group to cancel stale CI runs - Remove redundant setup-node step - Update jest.config.js for jsdom + tsx support - Add meetingStatusBatcher integration test (3 tests) - Extract createMeetingStatusBatcher factory for testability
43 lines
784 B
YAML
43 lines
784 B
YAML
name: Test Next Server
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "www/**"
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "www/**"
|
|
|
|
jobs:
|
|
test-next-server:
|
|
runs-on: ubuntu-latest
|
|
concurrency:
|
|
group: test-next-server-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: ./www
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
package_json_file: './www/package.json'
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
cache: 'pnpm'
|
|
cache-dependency-path: './www/pnpm-lock.yaml'
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
|
|
- name: Run tests
|
|
run: pnpm test |