Skip to content

Commit

Permalink
Fixes and proper linting support
Browse files Browse the repository at this point in the history
  • Loading branch information
stooit committed Nov 25, 2024
1 parent 7cf5d62 commit f9e22f0
Show file tree
Hide file tree
Showing 17 changed files with 847 additions and 136 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 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: Run unit tests
name: CI

on:
push:
Expand All @@ -11,22 +11,26 @@ on:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [16.x, 18.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run lint:cli
- run: npm run lint:src
- run: npm run build --if-present
- run: npm test
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run linting
run: npm run lint:cli

- name: Run tests
run: npm test
Loading

0 comments on commit f9e22f0

Please sign in to comment.