Skip to content

Commit

Permalink
feat: ✨ migrated npm to pnpm (#344)
Browse files Browse the repository at this point in the history
* feat: ✨ migrated npm to pnpm

* feat: 🔒 added codeql workflow

* chore: ⬆️ upgraded codeql version

* chore: ♻️ updated package manager version
  • Loading branch information
WasiqB authored Jun 15, 2024
1 parent 138dd84 commit 0969e2f
Show file tree
Hide file tree
Showing 16 changed files with 15,559 additions and 11,914 deletions.
32 changes: 19 additions & 13 deletions .github/ISSUE_TEMPLATE/--bug-report.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,39 @@
---
name: "\U0001F41BBug report"
about: Create a report to help us improve.

---

**Environment (please complete the following information):**
- multiple-cucumber-html-reporter: [e.g. 1.10.0]
- Node.js version: [e.g. 8.9.1]
- NPM version: [e.g. 5.8.0]
- Platform name and version: [e.g. Windows 10]
- Cucumber version: [e.g. 4.2.0]
# Environment (please complete the following information)

- multiple-cucumber-html-reporter: [e.g. 1.10.0]
- Node.js version: [e.g. 8.9.1]
- NPM version: [e.g. 5.8.0]
- Platform name and version: [e.g. Windows 10]
- Cucumber version: [e.g. 4.2.0]

## Config of multiple-cucumber-html-reporter

**Config of multiple-cucumber-html-reporter**
An example of how you configured the reporter in your config

**Describe the bug**
## Describe the bug

A clear and concise description of what the bug is.

**To Reproduce**
## To Reproduce

Steps to reproduce the behavior:

[Include code or an example repository that can easily be set up]

**Expected behavior**
## Expected behavior

A clear and concise description of what you expected to happen.

**Log**
## Log

If applicable, add logs to help explain your problem. If you don't have logs, enable 'debug:true' in the config and paste the log here.
Please use proper markdown to style it

**Additional context**
## Additional context

Add any other context about the problem here.
12 changes: 7 additions & 5 deletions .github/ISSUE_TEMPLATE/--documentation.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
---
name: "\U0001F4D6Documentation"
about: Suggest improvements or report missing/unclear documentation.

---

**Pre-check**
- [ ] I'm aware that I can [edit the docs](https://github.com/wswebcreation/multiple-cucumber-html-reporter-plugin) and submit a pull request
# Pre-check

- [ ] I'm aware that I can [edit the docs](https://github.com/WasiqB/multiple-cucumber-html-reporter-plugin) and submit a pull request

**Describe the improvement**
## Describe the improvement

I'd like to report

- [ ] Unclear documentation
- [ ] A typo
- [ ] Missing documentation
- [ ] Other

**Description of the improvement / report**
## Description of the improvement / report

A clear and concise description.
13 changes: 8 additions & 5 deletions .github/ISSUE_TEMPLATE/--feature-request.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
---
name: "\U0001F4A1Feature request"
about: Suggest an idea for this module.

---

**Is your feature request related to a problem? Please describe.**
# Is your feature request related to a problem? Please describe

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
## Describe the solution you'd like

A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
## Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
## Additional context

Add any other context or screenshots about the feature request here.
19 changes: 9 additions & 10 deletions .github/ISSUE_TEMPLATE/--question.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
---
name: "\U0001F4ACQuestion"
about: Ask questions.

---

**Describe your question with as much detail as possible**
A clear and concise question that doesn't require too much conversation. Need more help? [Find me on Gitter](https://gitter.im/wswebcreation/multiple-cucumber-html-reporter-plugin)
# Describe your question with as much detail as possible

A clear and concise question that doesn't require too much conversation. Need more help? [Find me on Gitter](https://gitter.im/WasiqB/multiple-cucumber-html-reporter-plugin)

**If it's about a specific piece of code, try and include some of it to support your question.**
[...]

## Environment (please complete the following information)

**Environment (please complete the following information):**
- multiple-cucumber-html-reporter: [e.g. 1.10.0]
- Node.js version: [e.g. 8.9.1]
- NPM version: [e.g. 5.8.0]
- Platform name and version: [e.g. Windows 10]
- Cucumber version: [e.g. 4.2.0]
- multiple-cucumber-html-reporter: [e.g. 1.10.0]
- Node.js version: [e.g. 8.9.1]
- NPM version: [e.g. 5.8.0]
- Platform name and version: [e.g. Windows 10]
- Cucumber version: [e.g. 4.2.0]

## Additional context

**Additional context**
Add any other context about the problem here.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,21 @@ version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
target-branch: "main"
versioning-strategy: increase
open-pull-requests-limit: 100
schedule:
interval: "weekly"
timezone: "Asia/Calcutta"

- package-ecosystem: "npm"
directory: "/examples/cypress"
target-branch: "main"
versioning-strategy: increase
open-pull-requests-limit: 100
schedule:
interval: "weekly"
timezone: "Asia/Calcutta"

- package-ecosystem: "github-actions"
directory: "/"
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CodeQL Scannings

on:
push:
branches:
- main

pull_request:
branches:
- main

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

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

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: javascript

- name: Auto build typescript
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
16 changes: 11 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,21 @@ jobs:
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- uses: actions/setup-node@v4
- uses: pnpm/action-setup@v2
with:
node-version: 16
version: latest

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"

- name: NPM Setup
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
run: pnpm config set //registry.npmjs.org/:_authToken $NPM_TOKEN

- name: Install Dependencies
run: npm ci
run: pnpm i

- name: Release
run: npm run release.${{ github.event.inputs.releaseType }}
run: pnpm release.${{ github.event.inputs.releaseType }}
11 changes: 8 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,24 @@ jobs:

strategy:
matrix:
node-version: [16]
node-version: [18, 20]

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
with:
version: latest

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"

- name: Install dependencies
run: npm ci
run: pnpm i

- name: Run Unit Tests and generate coverage report
run: npm run unit.test.coverage
run: pnpm unit.test.coverage
Loading

0 comments on commit 0969e2f

Please sign in to comment.