Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

build(deps): bump xml2js and @azure/ms-rest-js #329

build(deps): bump xml2js and @azure/ms-rest-js

build(deps): bump xml2js and @azure/ms-rest-js #329

Workflow file for this run

# 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 }}