Build(deps-dev): Bump husky from 8.0.3 to 9.1.2 #247
Workflow file for this run
This file contains hidden or 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: Build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
types: [opened, synchronize, reopened, closed] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x, 18.x, 20.x] | |
services: | |
mysql: | |
image: mysql:5.7 | |
env: | |
MYSQL_DATABASE: jest_mysql_test | |
MYSQL_ROOT_PASSWORD: root | |
ports: | |
- 3306 | |
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Clean install dependencies and build | |
run: | | |
npm i --package-lock-only | |
npm ci | |
npm run build --if-present | |
- name: Run tests | |
run: npm test | |
env: | |
DB_PORT: ${{ job.services.mysql.ports[3306] }} | |
- name: Collect code coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
file: ./coverage/clover.xml | |
flags: unittests | |
name: library-coverage | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true | |
env: | |
CI: true |