2022-06-22 19:45:45 +03:00
|
|
|
name: CryptoPRO tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
buildAndTest:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-11-10 18:30:19 +03:00
|
|
|
node-version: [ 16 ]
|
2022-06-22 19:45:45 +03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
2022-11-10 18:30:19 +03:00
|
|
|
check-latest: true
|
2022-06-22 19:45:45 +03:00
|
|
|
|
|
|
|
- name: Clean install, build, test
|
|
|
|
run: |
|
|
|
|
npm ci
|
|
|
|
npm run build --if-present --openssl-legacy-provider
|
|
|
|
npm test
|
|
|
|
|
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2022-11-10 18:30:19 +03:00
|
|
|
- name: Use Node.js 16
|
2022-06-22 19:45:45 +03:00
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
2022-11-10 18:30:19 +03:00
|
|
|
node-version: 16
|
|
|
|
check-latest: true
|
|
|
|
|
2022-06-22 19:45:45 +03:00
|
|
|
- name: Clean install, lint
|
|
|
|
run: |
|
|
|
|
npm ci
|
|
|
|
npm run lint
|