2022-08-02 08:03:18 -06:00
|
|
|
name: Testing package
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches: ['*']
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
node-version: [16.x]
|
|
|
|
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Use Node.js 16
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 16
|
|
|
|
cache: 'npm'
|
|
|
|
registry-url: https://registry.npmjs.org/
|
2023-02-10 21:41:22 -06:00
|
|
|
- run: npm ci --legacy-peer-deps
|
2022-08-02 08:03:18 -06:00
|
|
|
- run: npm test
|
|
|
|
test-build-package:
|
|
|
|
needs: test
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 16
|
|
|
|
registry-url: https://registry.npmjs.org/
|
2023-02-10 21:41:22 -06:00
|
|
|
- run: npm ci --legacy-peer-deps
|
2022-08-02 08:03:18 -06:00
|
|
|
- run: npm run build
|