Skip to content

Commit

Permalink
feat!: namespace piscina-locks (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
metcoder95 authored Dec 13, 2023
1 parent 1e024ee commit 42c6173
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 12 deletions.
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
open-pull-requests-limit: 10

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
42 changes: 38 additions & 4 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
on: [push, pull_request]
on:
push:
branches:
- current
- next
- 'v*'
paths-ignore:
- 'docs/**'
- '*.md'
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'

name: CI

Expand All @@ -8,12 +20,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Node.js 16
with:
persist-credentials: false
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: v16.x
node-version: v21.x
cache: 'npm'
cache-dependency-path: package.json

- name: Install dependencies
run: npm install

- name: Check linting
run: npm run lint

Expand All @@ -23,18 +41,34 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [12.x, 14.x, 15.x, 16.x]
node-version: [18.x, 20.x, 21.x]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: package.json

- uses: actions/cache@v3
id: check-cache
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node-version }}-
- name: Install Dependencies
run: npm install

- name: Test
run: npm test

- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "piscina-locks",
"name": "@piscina/locks",
"version": "2.0.2",
"description": "A Web Locks API implementation for Node.js",
"keywords": [
Expand Down Expand Up @@ -54,17 +54,17 @@
]
},
"devDependencies": {
"@types/node": "^15.0.1",
"@typescript-eslint/eslint-plugin": "^4.22.0",
"@typescript-eslint/parser": "^4.22.0",
"@types/node": "^20.10.4",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"abort-controller": "^3.0.0",
"gen-esm-wrapper": "^1.1.1",
"prebuildify": "^4.1.1",
"gen-esm-wrapper": "^1.1.3",
"prebuildify": "^5.0.1",
"snazzy": "^9.0.0",
"standardx": "^7.0.0",
"tap": "^15.0.6",
"ts-node": "^9.1.1",
"typescript": "^4.2.4"
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
},
"dependencies": {
"node-addon-api": "^3.0.2",
Expand Down

0 comments on commit 42c6173

Please sign in to comment.