Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #138 from zowe/updateWorkFlows
Browse files Browse the repository at this point in the history
updating workflows - master
  • Loading branch information
t1m0thyj authored May 11, 2023
2 parents 186f329 + 8f3b415 commit 2d36fcd
Show file tree
Hide file tree
Showing 12 changed files with 177 additions and 27 deletions.
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Bug report
about: Create a report to help us improve the CICs Plug-in
labels: bug, new
---

<!-- Thanks for deciding to open an issue. Before submitting, please see the following information. -->

<!-- Before opening a new issue, please search our existing issues: https://github.com/zowe/zowe-cli-cics-plugin/issues -->

**Describe the bug**

<!-- A clear and concise description of the bug or error. -->

**Expected and actual results**

<!--
Details about the behavior:
1. Command issued:
2. Expected results:
3. Actual results:
4. Applicable log files:
-->
**Describe your environment**

<!--
- Zowe CLI version installed (run command `zowe --version`):
- Installed plug-ins and their version numbers (run command `zowe plugins list --short`):
- Node.js and NPM versions installed (run `node --version`, `npm --version`):
- Environment variables in use:
- Operating system and version:
- Shell/terminal (bash, cmd, powershell, etc...):
- Daemon mode enabled or disabled:
- For more information, see Gathering information to troubleshoot Zowe CLI
-->

**Additional context**

<!-- Add any other context about the problem here. -->
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Question
url: https://github.com/zowe/zowe-cli-cics-plugin/discussions/categories/q-a
about: Please ask and answer questions here.
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Feature request
about: Suggest an idea for the CICS Plug-in
labels: enhancement, new
---

<!-- Thanks for deciding to open an issue. Before submitting, please complete the following information. -->

**Is your feature or enhancement request related to a problem or limitation? Please describe**

<!-- A clear and concise description of the problem or limitation. Example: I'm frustrated when [...] happens, or I wish I was able to [...] with Imperative -->

**Describe your enhancement idea**

<!-- A clear and concise description of what you want to happen, such as the task you are trying to complete. -->

**Describe alternatives you've considered**

<!-- A clear and concise description of any alternative solutions or workarounds you've used to overcome the problem or limitation. -->

**Provide any additional context**

<!-- Add any other context (code snippets, error messages, sample outputs, screenshots) about the request here. -->
16 changes: 16 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
**What It Does**
<!-- A list of relevant issues, enhancements, fixed bugs, etc -->

**How to Test**
<!-- If a bug has been fixed, how can reviewers verify that the change(s) fixed it? -->

**Review Checklist**
I certify that I have:
- [ ] tested my changes
- [ ] added/updated automated tests
- [ ] updated the changelog
- [ ] followed the [contribution guidelines](https://github.com/zowe/zowe-cli/blob/master/CONTRIBUTING.md)


**Additional Comments**
<!-- Anything else noteworthy about this pull request. This section is optional. -->
11 changes: 11 additions & 0 deletions .github/label-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
bug:
comment: |
Thank you for creating a bug report.
We will investigate the bug and evaluate its impact on the product.
If you haven't already, please ensure you have provided steps to reproduce the bug and as much context as possible.
enhancement:
comment: |
Thank you for raising this enhancement request.
The community has 90 days to vote on it.
If the enhancement receives at least 5 upvotes, it is added to our development backlog.
If it receives fewer votes, the issue is closed.
8 changes: 4 additions & 4 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
branches:
- master
- zowe-v1-lts
- zowe-v?-lts
- next
# schedule:
# - cron: '0 10 * * *'
Expand All @@ -15,12 +15,12 @@ jobs:

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

- name: Use Node.js LTS
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: lts/*

- name: Check Vulnerabilities
run: npm audit --production --audit-level=moderate
run: npm audit --production --audit-level=moderate
16 changes: 16 additions & 0 deletions .github/workflows/auto-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Auto Responder for New Issues
# This workflow is triggered when a label is added to an issue.
on:
issues:
types: labeled

jobs:
processLabelAction:
name: Process Label Action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Process Label Action
uses: hramos/respond-to-issue-based-on-label@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
8 changes: 4 additions & 4 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
branches:
- master
- zowe-v1-lts
- zowe-v?-lts
- next

jobs:
Expand All @@ -13,15 +13,15 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Check Changelog Updated
id: checkchangelogupdated
if: ${{ contains( github.event.pull_request.labels.*.name, 'no-changelog') != true }}
uses: awharn/check_changelog_action@v0.0.2
uses: awharn/check_changelog_action@v1
with:
header: '## Recent Changes'
file: 'CHANGELOG.md'
lerna: false
lerna: false
10 changes: 5 additions & 5 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ on:
push:
branches:
- master
- zowe-v1-lts
- zowe-v?-lts
- next
pull_request:
branches:
- master
- zowe-v1-lts
- zowe-v?-lts
- next
# schedule:
# - cron: '0 10 * * *'
Expand All @@ -30,13 +30,13 @@ jobs:

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

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
config-file: ./.github/resources/codeql-config.yml

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
12 changes: 6 additions & 6 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches-ignore:
- 'master'
- 'zowe-v1-lts'
- 'zowe-v?-lts'
- 'next'
pull_request:
branches:
Expand All @@ -17,15 +17,15 @@ jobs:

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

- name: Use Node.js 12.x
uses: actions/setup-node@v1
- name: Use Node.js LTS
uses: actions/setup-node@v3
with:
node-version: 12.x
node-version: 'lts/*'

- name: Install Node Package Dependencies
run: npm ci

- name: Lint
run: npm run lint
run: npm run lint
39 changes: 39 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '0 */6 * * *'

permissions:
issues: write
pull-requests: write

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
# General rules applied to both, issues and pull requests (PRs)
start-date: "2022-07-30T00:00:00Z"
days-before-close: 14
days-before-stale: 90
exempt-all-assignees: true
exempt-all-milestones: true

# Rules applied to Issues
exempt-issue-labels: "Epic, bug, priority-critical, priority-high, community-upvoted, for-review, security, keep"
stale-issue-message: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs.
close-issue-message: >
This issue has been automatically closed due to lack of activity. In an
effort to reduce noise, please do not comment any further.
# Rules applied to PRs
exempt-pr-labels: "community-upvoted, for-review, security, keep"
stale-pr-message: >
This pull request has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs.
close-pr-message: >
This pull request has been automatically closed due to lack of activity. In an
effort to reduce noise, please do not comment any further.
16 changes: 8 additions & 8 deletions .github/workflows/zowe-cli-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [16.x, 18.x]
os: [windows-latest, ubuntu-latest, macos-latest]

env:
Expand All @@ -28,7 +28,7 @@ jobs:

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

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
Expand All @@ -45,7 +45,7 @@ jobs:

- name: Update Dependencies
id: npm-update
uses: zowe-actions/octorelease-script@master
uses: zowe-actions/octorelease/script@v1
with:
script: npmUpdate

Expand All @@ -59,7 +59,7 @@ jobs:

- name: Archive Results
if: ${{ always() && steps.build.outcome == 'success' }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-${{ matrix.node-version }}-results
path: __tests__/__results__/
Expand All @@ -77,22 +77,22 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
ref: ${{ github.ref }}

- name: Use Node.js LTS
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 'lts/*'

- name: Install Dependencies
run: npm ci

- name: Update Dependencies
uses: zowe-actions/octorelease-script@master
uses: zowe-actions/octorelease/script@v1
env:
GIT_COMMITTER_NAME: ${{ secrets.ZOWE_ROBOT_USER }}
GIT_COMMITTER_EMAIL: ${{ secrets.ZOWE_ROBOT_EMAIL }}
Expand All @@ -103,7 +103,7 @@ jobs:
- name: Build Source
run: npm run build

- uses: zowe-actions/octorelease@master
- uses: zowe-actions/octorelease@v1
env:
GIT_COMMITTER_NAME: ${{ secrets.ZOWE_ROBOT_USER }}
GIT_COMMITTER_EMAIL: ${{ secrets.ZOWE_ROBOT_EMAIL }}
Expand Down

0 comments on commit 2d36fcd

Please sign in to comment.