Skip to content

Commit

Permalink
feat: Add translations and ci pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
rmsphd committed Nov 27, 2023
1 parent 67c4ece commit 692cf97
Show file tree
Hide file tree
Showing 10 changed files with 16,440 additions and 31 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
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
23 changes: 23 additions & 0 deletions .github/workflows/.ci_cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI/CD
on: push
jobs:
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
Loading

0 comments on commit 692cf97

Please sign in to comment.