Skip to content

test: run database tests in CI #346

test: run database tests in CI

test: run database tests in CI #346

Workflow file for this run

name: Test, lint and check TS
on:
pull_request:
branches:
- main
workflow_call:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install SQL Server
uses: Particular/[email protected]
with:
connection-string-env-var: "Server=localhost,1433;User Id=sa;Password=Abcd3fgH1;"
catalog: tenants-leases-test
sqlserver-version: 2019
- name: Verify SQL Server Connection
run: |
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P Abcd3fgH1 -Q "SELECT @@VERSION"
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test:ci
- name: Run linting
run: npm run lint
- name: Check TS
run: npm run ts:ci