Skip to content

tests

tests #149

Workflow file for this run

name: tests
on:
push:
branches:
- main
- '*.x'
pull_request:
schedule:
- cron: '0 0 * * *'
env:
LITESTAR_BYPASS_ENV_CHECK: 1
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 21.x]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: ESLint
run: npm run lint
- name: Execute tests
run: npm test
- name: Run build
run: npm run build