feat: add npm package-lock.json support for 6.x (#463) #356
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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Node CI | |
on: | |
push: | |
branches: [ master, 6.x, 5.x, 4.x, 3.x ] | |
pull_request: | |
branches: [ master, 6.x, 5.x, 4.x, 3.x ] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [ 14.x, 16.x, 18.x ] | |
platform: | |
- os: ubuntu-latest | |
shell: bash | |
- os: windows-latest | |
shell: powershell | |
python-version: [ 3.7 ] | |
vs-version: [ 15.0 ] | |
runs-on: ${{ matrix.platform.os }} | |
defaults: | |
run: | |
shell: ${{ matrix.platform.shell }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
env: | |
PYTHON_VERSION: ${{ matrix.python-version }} | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Set Windows environment | |
if: matrix.os == 'windows-latest' | |
uses: microsoft/setup-msbuild@v1.0.3 | |
with: | |
vs-version: ${{ matrix.vs-version }} | |
- name: Install dependencies | |
run: npm i | |
- name: Run CI | |
run: npm run ci | |
env: | |
NODE_OPTIONS: --max_old_space_size=6144 | |