This repository has been archived by the owner on Feb 11, 2024. It is now read-only.
build(deps-dev): bump @commitlint/config-conventional from 12.1.3 to 18.6.0 #323
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: Node.js CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
tests: | |
if: "!contains(github.event.head_commit.message, 'skip ci')" | |
runs-on: ubuntu-latest | |
env: | |
SERVER: localhost | |
USERNAME: sa | |
PASSWORD: '@StrongPassword123' | |
DATABASE: master | |
strategy: | |
matrix: | |
node-version: [14.x] | |
services: | |
mssql: | |
image: microsoft/mssql-server-linux | |
env: | |
ACCEPT_EULA: y | |
SA_PASSWORD: '@StrongPassword123' | |
MSSQL_PID: Express | |
ports: | |
- 1433:1433 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Cache Node - npm | |
uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Setup SQL Server | |
run: sqlcmd -S $SERVER -U $USERNAME -P $PASSWORD -i setup/database.sql | |
- run: npm ci | |
- run: npm test | |
env: | |
CREDENTIALS: ${{ secrets.CREDENTIALS }} |