chore: bump packages and audit fixes #149
Workflow file for this run
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
name: test-workflow | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'src/**' | |
- '__tests__/**' | |
- '!__tests__/mock-data/**' | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
name: Run tests | |
steps: | |
- name: checkout | |
uses: actions/checkout@master | |
- name: setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: install deps | |
run: npm ci | |
- name: check audits | |
run: npm audit | |
- name: install package for npx tests | |
run: npm i -g file:./ | |
- name: run unit tests | |
env: | |
GEN_ENV_TEMPLATE_BASE: ${{ github.workspace }} | |
GEN_ENV_TEMPLATE_ABSOLUTE_PATH: ${{ github.workspace }}${{ matrix.os == 'windows-latest' && '\src\bin\run' || '/src/bin/run' }} | |
run: npm run test:unit | |
- name: run e2e tests | |
env: | |
GEN_ENV_TEMPLATE_BASE: ${{ github.workspace }} | |
GEN_ENV_TEMPLATE_ABSOLUTE_PATH: ${{ github.workspace }}${{ matrix.os == 'windows-latest' && '\src\bin\run' || '/src/bin/run' }} | |
run: npm run test:e2e |