Skip to content

Convert project to TypeScript with automatic type generation #69

Convert project to TypeScript with automatic type generation

Convert project to TypeScript with automatic type generation #69

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Test
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
jobs:
test-mock:
name: Test with Mock (Node ${{ matrix.node-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build
- run: npm test
env:
MOCK_SEQ: true
test-seq:
name: Test with Seq (Node ${{ matrix.node-version }})
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
services:
seq:
image: datalust/seq:latest
ports:
- 5341:80
- 5342:5342
env:
ACCEPT_EULA: Y
SEQ_FIRSTRUN_NOAUTHENTICATION: True
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build
- run: npm test