Fix package missing protos, npm audit #65
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- develop | |
- master | |
name: Unit test and build | |
jobs: | |
test-local: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: ["14", "16", "18"] | |
name: Node ${{ matrix.node }} sample | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
cache: "npm" | |
node-version: ${{ matrix.node }} | |
- run: npm ci | |
- run: npm run test:ci | |
build: | |
runs-on: ubuntu-latest | |
name: Build package | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
cache: "npm" | |
node-version: 14 | |
- run: npm ci | |
- run: npm run build |