From ef0ab3835dbc7f9c7f21a0aac37e05315ded8bea Mon Sep 17 00:00:00 2001 From: Jack Reed <phillipjreed@gmail.com> Date: Tue, 24 Nov 2020 06:10:10 -0700 Subject: [PATCH] Setup testing for multiple nodejs versions --- .github/workflows/node.js.yml | 7 +++++-- webpack.config.js | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index fce1892d5..120b69a47 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -12,13 +12,16 @@ on: jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + node-version: [14.x, 16.x, 17.x] steps: - uses: actions/checkout@v2 - - name: Use Node.js 14.x + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: - node-version: 14.x + node-version: ${{ matrix.node-version }} - run: npm install -g codecov - run: npm install - run: npm test diff --git a/webpack.config.js b/webpack.config.js index 3f78b6cad..69be72ce9 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -33,6 +33,7 @@ const baseConfig = mode => ({ }, output: { filename: 'mirador.min.js', + hashFunction: 'md5', library: 'Mirador', libraryExport: 'default', libraryTarget: 'umd', -- GitLab