Skip to content

Commit

Permalink
Update deps and add mac arm
Browse files Browse the repository at this point in the history
  • Loading branch information
raub committed Jun 2, 2024
1 parent 17ba4e7 commit 4bbf5b4
Show file tree
Hide file tree
Showing 13 changed files with 316 additions and 620 deletions.
81 changes: 0 additions & 81 deletions .eslintrc.json

This file was deleted.

18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ jobs:
steps:

- name: Fetch Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.16.0
node-version: 20.14.0
cache: 'npm'

- name: Get Package Version
Expand All @@ -34,7 +34,7 @@ jobs:

- name: Create Draft Release
id: create_release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -47,21 +47,21 @@ jobs:
name: Build
strategy:
matrix:
os: [ubuntu-20.04, windows-2022, macos-11, [self-hosted, linux, ARM64]]
os: [ubuntu-22.04, windows-2022, macos-12, macos-14, [self-hosted, linux, ARM64]]

runs-on: ${{ matrix.os }}

steps:

- name: Fetch Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.16.0
node-version: 20.14.0
cache: 'npm'

- name: Install Modules
Expand All @@ -79,7 +79,7 @@ jobs:
run: node -e "require('addon-tools-raub').actionPack()" >> $GITHUB_OUTPUT

- name: Store Binaries
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/cpplint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ on:
jobs:
eslint:
name: Cpplint
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:

- name: Fetch Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.16.0
node-version: 20.14.0
cache: 'npm'

- name: Install Modules
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ on:
jobs:
eslint:
name: ESLint
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:

- name: Fetch Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.16.0
node-version: 20.14.0
cache: 'npm'

- name: Install Modules
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ jobs:
steps:

- name: Fetch Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.16.0
node-version: 20.14.0
cache: 'npm'

- name: Get Package Version
Expand All @@ -37,7 +37,7 @@ jobs:

- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ jobs:
name: Unit Tests
strategy:
matrix:
os: [ubuntu-20.04, windows-2022, macos-11, [self-hosted, linux, ARM64]]
os: [ubuntu-22.04, windows-2022, macos-12, macos-14, [self-hosted, linux, ARM64]]

runs-on: ${{ matrix.os }}

steps:

- name: Fetch Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.16.0
node-version: 20.14.0
cache: 'npm'

- name: Install Modules
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Luis Blanco
Copyright (c) 2024 Luis Blanco

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
97 changes: 97 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
'use strict';

const js = require('@eslint/js');


module.exports = [
js.configs.recommended,
{
languageOptions: {
'parserOptions': {
'ecmaVersion': 2022,
sourceType: 'commonjs'
},
globals: {
global: 'readonly',
require: 'readonly',
Buffer: 'readonly',
module: 'readonly',
console: 'readonly',
__dirname: 'readonly',
process: 'readonly',
setTimeout: 'readonly',
setImmediate: 'readonly',
clearImmediate: 'readonly',
},
},
'rules': {
'arrow-parens': ['error', 'always'],
'no-trailing-spaces': [
'error',
{
'skipBlankLines': true
}
],
'indent': [
'error',
'tab',
{
'SwitchCase': 1
}
],
'operator-linebreak': [
'error',
'after',
{
'overrides': {
'?': 'before',
':': 'before'
}
}
],
'max-len': ['error', 110],
'quotes': [
'error',
'single'
],
'semi': [
'error',
'always'
],
'no-multiple-empty-lines': ['error', { 'max': 3, 'maxEOF': 1, 'maxBOF': 1 }],
'keyword-spacing': ['error', { 'before': true, 'after': true }],
'space-before-blocks': ['error'],
'space-before-function-paren': [
'error', {'anonymous': 'always', 'named': 'never', 'asyncArrow': 'always'}
],
'camelcase': ['error'],
'no-tabs': [0],
'no-unused-vars': [
'error',
{
'argsIgnorePattern': '^_',
'varsIgnorePattern': '^_',
'caughtErrorsIgnorePattern': '^_'
}
],
'global-require': [0],
'no-underscore-dangle': [0],
'no-plusplus': [0],
'no-shadow': [0],
'node/no-unpublished-require': [0],
'no-process-exit': [0],
'linebreak-style': [0],
'node/no-missing-require': [0],
'no-console': [0],
'node/no-unsupported-features/es-builtins': 0,
'node/no-unsupported-features/node-builtins': 0,
'func-names': [
'error',
'never',
{
'generators': 'never'
}
]
}
},
];
Loading

0 comments on commit 4bbf5b4

Please sign in to comment.