Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repo forked in release #1

Merged
merged 12 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
module.exports = {
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module'
},
env: {
node: true
},
overrides: [
{
files: [
'**/*.spec.js'
],
env: {
jest: true
}
}
],
extends: [
'plugin:jsdoc/recommended',
'strongloop'
],
plugins: [
'jsdoc'
],
rules: {
'max-len': ['error', { code: 150 }],
indent: [
'error', 2,
{SwitchCase: 1}
],
'linebreak-style': [
'error',
'unix'
],
quotes: [
'warn',
'double'
],
semi: [
'warn',
'always'
],
'comma-dangle': ['warn', 'never'],
'space-before-function-paren': ['error', {
anonymous: 'never',
named: 'never',
asyncArrow: 'always'
}],
'jsdoc/no-undefined-types': 0
}
}
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "monthly"
ignore:
- dependency-name: "husky"
- dependency-name: "lint-staged"
- dependency-name: "eslint*"
18 changes: 18 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can remove this file.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
":disableDependencyDashboard"
],
"packageRules": [
{
"groupName": "devDeps",
"description": "Automerge minor updates of devDeps",
"automerge": true,
"matchUpdateTypes": ["minor", "patch"],
"matchDepTypes": ["devDependencies"],
"schedule": ["on the first day of the month"]
}
],
"forkProcessing": "enabled"
}
21 changes: 21 additions & 0 deletions .github/workflows/actions_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Release GitHub Actions

on:
workflow_dispatch:
inputs:
tag:
description: "Tag for the release"
required: true

permissions:
contents: read

jobs:
release:
permissions:
actions: read
id-token: write
contents: write
uses: step-security/reusable-workflows/.github/workflows/actions_release.yaml@v1
with:
tag: "${{ github.event.inputs.tag }}"
125 changes: 125 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
name: Test

on:
workflow_dispatch:

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
-
name: Set variable
uses: action-pack/set-variable@v1
with:
name: 'TEST'
value: '1'
token: ${{ secrets.REPO_ACCESS_TOKEN }}
-
name: Test increment
uses: action-pack/increment@v2
with:
name: 'TEST'
token: ${{ secrets.REPO_ACCESS_TOKEN }}
-
name: Test increment by 2
uses: action-pack/increment@v2
with:
name: 'TEST'
amount: 2
token: ${{ secrets.REPO_ACCESS_TOKEN }}
-
name: Test decrement by 4
uses: action-pack/increment@v2
with:
name: 'TEST'
amount: -4
token: ${{ secrets.REPO_ACCESS_TOKEN }}
-
name: Set variable
uses: action-pack/set-variable@v1
with:
name: 'TEST'
value: '05'
token: ${{ secrets.REPO_ACCESS_TOKEN }}
-
name: Test increment
uses: action-pack/increment@v2
with:
name: 'TEST'
token: ${{ secrets.REPO_ACCESS_TOKEN }}
-
name: Test increment by 2
uses: action-pack/increment@v2
with:
name: 'TEST'
amount: 2
token: ${{ secrets.REPO_ACCESS_TOKEN }}
-
name: Test decrement by 4
uses: action-pack/increment@v2
with:
name: 'TEST'
amount: -4
token: ${{ secrets.REPO_ACCESS_TOKEN }}
-
name: Set variable
uses: action-pack/set-variable@v1
with:
name: 'TEST'
value: '0.5.05'
token: ${{ secrets.REPO_ACCESS_TOKEN }}
-
name: Test increment
uses: action-pack/increment@v2
with:
name: 'TEST'
token: ${{ secrets.REPO_ACCESS_TOKEN }}
-
name: Test increment by 2
uses: action-pack/increment@v2
with:
name: 'TEST'
amount: 2
token: ${{ secrets.REPO_ACCESS_TOKEN }}
-
name: Test decrement by 4
uses: action-pack/increment@v2
with:
name: 'TEST'
amount: -4
token: ${{ secrets.REPO_ACCESS_TOKEN }}
-
name: Set variable
uses: action-pack/set-variable@v1
with:
name: 'TEST'
value: '-4'
token: ${{ secrets.REPO_ACCESS_TOKEN }}
-
name: Test negative increment
uses: action-pack/increment@v2
with:
name: 'TEST'
token: ${{ secrets.REPO_ACCESS_TOKEN }}
-
name: Test negative decrement by 2
uses: action-pack/increment@v2
with:
name: 'TEST'
amount: -2
token: ${{ secrets.REPO_ACCESS_TOKEN }}
-
name: Test increment by 4
uses: action-pack/increment@v2
with:
name: 'TEST'
amount: 4
token: ${{ secrets.REPO_ACCESS_TOKEN }}
-
name: Test decrement by 4
uses: action-pack/increment@v2
with:
name: 'TEST'
amount: -4
token: ${{ secrets.REPO_ACCESS_TOKEN }}
108 changes: 108 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
#dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# IDE
.idea
.vscode
20 changes: 20 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2024 StepSecurity

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Loading