Skip to content

Commit

Permalink
fix(hci): update to the hci layer to address the issues on ubuntu 24 (#5
Browse files Browse the repository at this point in the history
)

* fix(hci): updating hci dependency to address ubuntu issue #4

* chore(lock): updating package

* fix(prebuildify-cross): patching packages to fix prebuilding

* chore(package): cleanup of dependencies

* chore(lint): minor updates to eslint

* chore(lint): enable ES6 syntax

* chore(actions): update codecov to v4

---------

Co-authored-by: Marek Serafin <marek.serafin@assaabloy.com>
  • Loading branch information
stoprocent and Marek Serafin authored Sep 25, 2024
1 parent 1557139 commit c2feb69
Show file tree
Hide file tree
Showing 8 changed files with 3,594 additions and 3,054 deletions.
5 changes: 3 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
module.exports = {
root: true,
extends: ['eslint:recommended', 'semistandard'],
extends: ['eslint:recommended'],
parserOptions: {
ecmaVersion: 2017
},
env: {
browser: true,
mocha: true,
node: true
node: true,
es6: true
},
globals: {
Promise: true
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Build
on:
push:
branches:
- main
- beta
pull_request:
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: false
Expand All @@ -13,7 +11,7 @@ jobs:
matrix:
include:
- name: darwin
os: macos-11
os: macos-12
node: x64
command: prebuildify
args: --arch x64+arm64
Expand Down Expand Up @@ -41,16 +39,16 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- if: matrix.node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x
architecture: ${{ matrix.node }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: npm ci
- run: npm run ${{ matrix.command }} -- ${{ matrix.args }}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: build-artifacts
name: build-artifacts-${{ matrix.name }}
path: prebuilds/
if-no-files-found: error
- if: failure()
Expand All @@ -60,17 +58,19 @@ jobs:
needs: prebuild
name: Release
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: build-artifacts
path: prebuilds
- uses: actions/setup-node@v3
pattern: build-artifacts-*
merge-multiple: true
- uses: actions/setup-node@v4
with:
node-version: 20.x
- run: npm ci
- run: npm run semantic-release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
19 changes: 5 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,12 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
- run: npm ci
- run: npm run lint
typescript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.x
- run: npm i typescript @types/node
- run: npx tsc *.d.ts
test:
runs-on: ${{ matrix.config.os }}
strategy:
Expand All @@ -35,14 +26,14 @@ jobs:
- { os: ubuntu-latest, arch: x64 }
- { os: windows-2019, arch: x64 }
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run rebuild
- run: npm test
- run: npm run coverage
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
with:
directory: ./coverage/
Loading

0 comments on commit c2feb69

Please sign in to comment.