Skip to content

Merge pull request #16 from BramComyn/infinite-server #18

Merge pull request #16 from BramComyn/infinite-server

Merge pull request #16 from BramComyn/infinite-server #18

Workflow file for this run

name: Test
on:
push:
branches:
- main
- 'versions/*'
tags:
- 'v*'
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/setup-node@v4
with:
node-version: 20.x
- run: npm ci
- run: npm run lint
test:
# Run unit tests on windows and linux
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system:
- ubuntu-latest
- windows-latest
node-version:
- '18.0'
- 18.x
- '20.0'
- 20.x
- '22.1'
- 22.x
timeout-minutes: 15
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Ensure line endings are consistent
run: git config --global core.autocrlf input
- name: Check out repository
uses: actions/[email protected]
- name: Install dependencies and run build scripts
run: npm ci
- name: Run tests
run: npm run test