Skip to content

feat: setup publication to NPM #16

feat: setup publication to NPM

feat: setup publication to NPM #16

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
config: [
# For TypeORM 0.3.18, minimum is Node 12.9
{ node: "21", typeorm: "0.3.18" },
# For TypeORM 0.3.19, minimum is Node 12.9
{ node: "21", typeorm: "0.3.19" },
# For TypeORM 0.3.20, minimum is Node 16.13
{ node: "21", typeorm: "0.3.20" },
]
name: Node ${{ matrix.config.node }}, TypeORM ${{ matrix.config.typeorm }}
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: ./.github/actions/setup-node
with:
node-version: ${{ matrix.config.node }}
- name: Install TypeORM
run: npm install typeorm@${{ matrix.config.typeorm }}
- name: Run tests
run: npm run test:unit