build(deps-dev): bump typescript from 5.3.3 to 5.5.4 (#239) #863
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: SQNS Merge Check | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.event.number }}-build-${{ matrix.node-version }}-${{ matrix.mongodb-version }} | |
cancel-in-progress: true | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [18.x, 20.x, 21.x] # https://endoflife.date/nodejs | |
mongodb-version: ['4.4', '5.0', '6.0'] # https://www.mongodb.com/support-policy/lifecycles | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Start MongoDB | |
uses: supercharge/mongodb-github-action@1.10.0 | |
with: | |
mongodb-version: ${{ matrix.mongodb-version }} | |
- run: npm ci | |
- run: node_modules/eslint/bin/eslint.js --ext .ts src | |
- run: node_modules/eslint/bin/eslint.js --ext .ts typings | |
- run: node_modules/tslint/bin/tslint -p ./ -c src/tslint.json | |
- run: node_modules/typescript/bin/tsc -p ./ | |
- run: rm -r dist | |
- name: coverage | |
run: | | |
node_modules/.bin/nyc node_modules/.bin/mocha src/setup.ts '**/*.spec.ts' | |
node_modules/.bin/nyc report --reporter=text-lcov > coverage1.lcov | |
env: | |
DEBUG: no | |
TEST_DB: mongoDB | |
MONGODB_URI: mongodb://localhost:27017/sqns | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |