Skip to content

Commit

Permalink
BREAKING CHANGE: Update dependencies, address vulnerabilities, drop s…
Browse files Browse the repository at this point in the history
…upport for Node.js <12

BREAKING CHANGE
  • Loading branch information
tancredi committed Nov 18, 2022
2 parents d7ec1f7 + e503f2e commit 0c5d532
Show file tree
Hide file tree
Showing 9 changed files with 5,079 additions and 10,095 deletions.
32 changes: 19 additions & 13 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,23 @@ jobs:
runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: '${{ env.NODE }}'
- uses: actions/cache@v2

- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
- run: npm ci

- run: npm run lint

- run: npm run typecheck

test:
Expand All @@ -37,26 +42,27 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macOS-10.15, ubuntu-18.04, windows-2019]
node: [10.x, 14.x, 16.x]
os: [macOS-11, ubuntu-20.04, windows-2019]
node: [14.x, 16.x, 18.x, 19.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v2

- uses: actions/cache@v3
with:
path: ${{ steps.npm-cache.outputs.dir }}
path: ~/.npm
key: ${{ matrix.os }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ matrix.os }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
${{ matrix.os }}-node-v${{ matrix.node }}-
- run: npm ci

- run: npm run build

- run: npm test

0 comments on commit 0c5d532

Please sign in to comment.