-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from green-code-initiative/feature-12-sonar-pl…
…ugin Standalone SonarQube plugin
- Loading branch information
Showing
77 changed files
with
3,119 additions
and
2,411 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
name: Bug report | ||
about: Report a way in which ecoCode-javascript is not working as intended | ||
title: '' | ||
labels: '💉 bug: unconfirmed' | ||
assignees: '' | ||
|
||
--- | ||
|
||
### Describe the bug | ||
|
||
A clear and concise description of what the bug is. | ||
|
||
### To Reproduce | ||
|
||
Steps to reproduce the behavior: | ||
|
||
1. ... | ||
2. ... | ||
|
||
### Expected behavior | ||
|
||
A clear and concise description of what you expected to happen. | ||
|
||
### Versions | ||
|
||
> Please ensure you are running up to date software before making a bug report. Deprecated versions will not receive | ||
> support. | ||
- ecoCode-javascript version: | ||
- SonarQube version (if applicable): | ||
|
||
### Screenshots | ||
|
||
If applicable, add screenshots to help explain your problem. | ||
|
||
### Additional context | ||
|
||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for ecoCode-javascript | ||
title: '' | ||
labels: '🚀 enhancement' | ||
assignees: '' | ||
|
||
--- | ||
|
||
### 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 | ||
|
||
A clear and concise description of what you want to happen. | ||
|
||
### Additional context | ||
|
||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
name: Question | ||
about: You need information about something on the plugin | ||
title: '' | ||
labels: '❔ question' | ||
assignees: '' | ||
|
||
--- | ||
|
||
Ask your question in this textfield. Please be as precise as possible. Duplicate questions will not be answered. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
tags: | ||
- '[0-9]+.[0-9]+.[0-9]+' | ||
|
||
permissions: | ||
packages: write | ||
|
||
env: | ||
NODE_VERSION: 18.x | ||
|
||
jobs: | ||
publish-npm: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout tag "${{ github.ref_name }}" | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.ref_name }} | ||
|
||
- name: Use Node.js ${{ env.NODE_VERSION }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Install dependencies | ||
run: yarn install --immutable | ||
working-directory: eslint-plugin | ||
|
||
- name: Copy LICENSE | ||
run: cp LICENSE.md eslint-plugin/ | ||
|
||
- name: Publish package on NPM | ||
run: npm publish --access public | ||
working-directory: eslint-plugin | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
publish-github: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout tag "${{ github.ref_name }}" | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.ref_name }} | ||
|
||
- name: Use Node.js ${{ env.NODE_VERSION }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
|
||
- name: Install dependencies | ||
run: yarn install --immutable | ||
working-directory: eslint-plugin | ||
|
||
- name: Copy LICENSE | ||
run: cp LICENSE.md eslint-plugin/ | ||
|
||
- name: Add scope to package name | ||
run: npx --yes change-package-name @${{ github.repository_owner }}/ecocode-eslint-plugin | ||
working-directory: eslint-plugin | ||
|
||
- name: Configure GitHub Packages registry | ||
uses: bduff9/[email protected] | ||
with: | ||
working-directory: eslint-plugin | ||
dot-npmrc: | | ||
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN} | ||
@${{ github.repository_owner }}:registry=https://npm.pkg.github.com | ||
always-auth=true | ||
- name: Publish package on GitHub Packages | ||
run: npm publish | ||
working-directory: eslint-plugin | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Oops, something went wrong.