Skip to content

misc: Updated the package-lock.json to resolve a dependency issue #30

misc: Updated the package-lock.json to resolve a dependency issue

misc: Updated the package-lock.json to resolve a dependency issue #30

Workflow file for this run

name: PR checks
on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: 'lint ${{ matrix.os.id }} (node: ${{ matrix.node-version }})'
runs-on: ${{ matrix.os.id }}
strategy:
matrix:
os:
- { id: ubuntu-22.04, name: jammy }
# 18 is oldest LTS, 20 is the current
node-version: [18, 20]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Run eslint
run: npm run lint
compile:
name: 'compile ${{ matrix.os.id }} (node: ${{ matrix.node-version }})'
runs-on: ${{ matrix.os.id }}
strategy:
matrix:
os:
- { id: ubuntu-22.04, name: jammy }
# 18 is oldest LTS, 20 is the current
node-version: [18, 20]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Compile project
run: npm run compile
test:
name: 'test ${{ matrix.os.id }} (node: ${{ matrix.node-version }})'
runs-on: ${{ matrix.os.id }}
strategy:
matrix:
os:
- { id: ubuntu-22.04, name: jammy }
# 18 is oldest LTS, 20 is the current
node-version: [18, 20]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Test project
run: npm test