Skip to content

Merge pull request #54 from twingly/dependabot/npm_and_yarn/xml2js-0.5.0 #47

Merge pull request #54 from twingly/dependabot/npm_and_yarn/xml2js-0.5.0

Merge pull request #54 from twingly/dependabot/npm_and_yarn/xml2js-0.5.0 #47

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [12.x, 14.x, 16.x]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Cache Node.js modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test