mirror of
https://github.com/crypto-pro-web/crypto-pro-js.git
synced 2024-11-23 16:44:59 +03:00
319068ffdd
* run test on node 16 and LTS (18) * specify the required Node.js version * run only on node 16
47 lines
900 B
YAML
Executable File
47 lines
900 B
YAML
Executable File
name: CryptoPRO tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
|
|
jobs:
|
|
buildAndTest:
|
|
runs-on: ubuntu-20.04
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [ 16 ]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
check-latest: true
|
|
|
|
- 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
|
|
- name: Use Node.js 16
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16
|
|
check-latest: true
|
|
|
|
- name: Clean install, lint
|
|
run: |
|
|
npm ci
|
|
npm run lint
|