Skip to content

Commit

Permalink
Merge branch 'release/V5.22.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
biancode committed Jul 28, 2022
2 parents 090bb69 + 60215a7 commit 5cd801c
Show file tree
Hide file tree
Showing 37 changed files with 24,784 additions and 16,649 deletions.
73 changes: 0 additions & 73 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

61 changes: 61 additions & 0 deletions .github/ISSUE_TEMPLATE/bugs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: "Bug Report"
description: Report a bug or unexpected behavior encountered.
labels:
- bug
body:
- type: "input"
id: "version"
attributes:
label: Which node-red-contrib-iiot-opcua version are you using?
description: |
Please check the `package.json` file in your Node-RED data directory (default: `$HOME/.node-red/`).
validations:
required: true
- type: textarea
id: descriptions
attributes:
label: What happened?
description: |
Please provide a clear and thorough description of what happened.
validations:
required: true
- type: dropdown
id: server
attributes:
label: Server
description: |
Which type of OPC UA Server are you connected to?
multiple: false
options:
- OPCUA-IIoT-Server Node
- OPCUA-IIoT-Flex-Server Node (Please attach AddressSpaceScript to the next section)
- Other/External server
- None/This is related to a node that doesn't connect to a server
validations:
required: true
- type: textarea
id: reproduction
attributes:
label: How can this be reproduced?
description: |
Please provide a step-by-step description of how to reproduce this behavior.
Please attach relevant flows as a `.json` file. (In the top-right menu, click `Export`)
validations:
required: true
- type: textarea
id: expected
attributes:
label: What did you expect to happen?
description: |
Describe the expected behavior and how the actual behavior differed.
validations:
required: false

- type: textarea
id: other
attributes:
label: Other Information
description: |
Please provide any other information you feel is relevant, such as Node-RED or NodeJS versions.
validations:
required: false
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/features.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Feature Request"
description: Request a new feature
labels:
- feature
body:
- type: textarea
id: description
attributes:
label: Describe the requested feature
description: |
Describe the feature you would like to see added.
Feel free to attach diagrams or screenshots.
validations:
required: true
- type: textarea
id: motivation
attributes:
label: Motivation
description: |
Describe why you would like to see this feature or the use-case for the feature.
validations:
required: true
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: 'npm'
directory: '/'
target-branch: "develop"
schedule:
interval: "weekly"
allow:
- dependency-type: "production"
ignore:
- dependency-name: "modbus*"
- dependency-name: "*modbus*"
45 changes: 45 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build and publish
on:
pull_request:
types:
- opened
push:
branches:
- develop
- development
- alpha
- beta
- master
- main
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
node: [12, 14, 16, 18]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm run build
- run: tar -czvf distrib.tar.gz modbus examples extras package.json docs index.js README.md CHANGELOG.md
- uses: actions/upload-artifact@v3
with:
name: build-folders
path: distrib.tar.gz

publish:
runs-on: ubuntu-20.04
needs: build
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
26 changes: 17 additions & 9 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,41 @@ name: "CodeQL"

on:
push:
branches: [ master ]
branches:
- main
- master
- develop
- development
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
branches:
- develop
schedule:
- cron: '26 15 * * 3'
- cron: '39 20 * * 0'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -50,7 +58,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -64,4 +72,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
13 changes: 13 additions & 0 deletions .github/workflows/greet-collaborators.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: "Greet Contributors"
on:
pull_request:
types: [opened, synchronize]

jobs:
GreetCommitter:
runs-on: ubuntu-latest
steps:
- name: "Greet Contributor"
uses: ibakshay/greet-contributors-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29 changes: 0 additions & 29 deletions .github/workflows/nodejs.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/snyk-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "Snyk Vulnerability Analysis"
on:
push:
branches:
- 6-additional-github-actions
- main
pull_request:
types:
- synchronize
- opened
jobs:
snyk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run Snyk vulnerability scan
uses: snyk/actions/node@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
command: monitor
14 changes: 14 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '30 1 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
with:
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. It will be closed in 30 days, but can be saved by removing the stale label or commenting.'
days-before-stale: 60
days-before-close: 30
Loading

0 comments on commit 5cd801c

Please sign in to comment.