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

Sonar integration #340

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @Gympass/new-ventures-leads @Gympass/nv-italkeis
49 changes: 49 additions & 0 deletions .github/PULL_REQUESTE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<!--
The PR title should be:
[JIRA_TASK] <The PR title>
E.g.: "[WEB-123] Creating a new pull request"
-->

[jira-task]: https://gympass.atlassian.net/browse/JIRA_TASK
[jira-img]: https://img.shields.io/badge/issue-JIRA-blue.svg

[![JIRA][jira-img]][jira-task]

## Motivation

<!-- In the motivation section, you need to explain around what has behind these changes, like a purpose of changes and what benefits do we get -->

## ⚠️ Warning

<!-- [Optional] In warning section, you can alert reviewers for something about this PR or add some reminders that need attention -->

- [ ] Need to create feature toggle

## Changes

<!-- In the changelog section, you can add the changes in an objective way -->

- Something that added/fixed/changed

## Status Checklist

<!-- In the status section, you can mark what you have already done -->

- [ ] devint ready
- [ ] Unit tests
- [ ] Manual tests
- [ ] Add in Storybook

## Screenshots

<!-- If you are adding a layout change, you can show the images below -->

|Before|After|
|---|---|
|<img src="https://via.placeholder.com/100x80.png" />|<img src="https://via.placeholder.com/100x80.png" />|

## Testing

<!-- How do we test the implementation? -->

- Access the url /employees
66 changes: 66 additions & 0 deletions .github/mergeable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
version: 2
mergeable:
- when: pull_request.*
validate:
- do: description
no_empty:
enabled: true
message: Description matter and should not be empty. Provide detail with **what** was changed, **why** it was changed, and **how** it was changed.

- when: pull_request.*
validate:
- do: or
validate:
- do: description
must_include:
regex: '[A-Z][A-Z0-9]+[-_]\d+'
message: 'The Jira ticket does not exist'
- do: title
must_include:
regex: '[A-Z][A-Z0-9]+[-_]\d+'
message: 'The Jira ticket does not exist'
- do: headRef
must_include:
regex: '[A-Z][A-Z0-9]+[-_]\d+'
message: 'The Jira ticket does not exist'
pass:
- do: labels
delete: 'NO_JIRA'
fail:
- do: labels
add: 'NO_JIRA'
- do: comment
payload:
body: This is NO_JIRA. Is it relevant now, really, why?

- when: pull_request.*, pull_request_review.*
name: 'Approval check'
validate:
- do: approvals
min:
count: 2

- when: schedule.repository
validate:
- do: stale
days: 20
type: pull_request
pass:
- do: comment
payload:
body: This is old. Is it still relevant?

- when: schedule.repository
filter:
- do: author
must_exclude:
regex: 'dependabot'
validate:
- do: stale
days: 40
type: pull_request
pass:
- do: comment
payload:
body: This is old. This PR will be closed now.
- do: close
32 changes: 32 additions & 0 deletions .github/workflows/.ci_cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI/CD
on: push
jobs:
test:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- name: Run SonarCloud
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
build:
runs-on: self-hosted
# if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Run npm install
run: npm install
- name: Run npm build
run: npm run build
- name: Run run release
run: npm run release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_USERNAME: ${{ secrets.NEXUS_USER }}
NPM_PASSWORD: ${{ secrets.NEXUS_PASS }}
NPM_EMAIL: ${{ secrets.NEXUS_USER }}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.9.0
17 changes: 11 additions & 6 deletions dist/zxcvbn.js

Large diffs are not rendered by default.

22 changes: 12 additions & 10 deletions dist/zxcvbn.js.map

Large diffs are not rendered by default.

Loading