Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
fe3107e
change actiion version
maxi512 Jun 10, 2022
9beefee
Auto-merge main back to dev
actions-user Jun 11, 2022
224a8ff
Auto-merge main back to dev
actions-user Jun 11, 2022
8c623e4
github-actions[bot] Jun 11, 2022
2fad38d
github-actions[bot] Jun 11, 2022
f8b379f
github-actions[bot] Jun 11, 2022
faf674c
github-actions[bot] Jun 11, 2022
4e593cd
github-actions[bot] Jun 11, 2022
600c51a
Merge branch 'main' of https://github.com/maxi512/typescript-api into…
maxi512 Jun 11, 2022
a384d18
Update deploy_to_test.yml
tscandalitta Jun 11, 2022
b8854d9
Create deploy_to_production.yml
tscandalitta Jun 11, 2022
5888bf1
add deploy to prod
maxi512 Jun 11, 2022
14280e8
add deploy to prod
maxi512 Jun 11, 2022
26c9675
Change something to trigger again deploy
maxi512 Jun 11, 2022
fc5735a
remove unncesary lines
maxi512 Jun 11, 2022
3c72f59
remove unnecesary files
maxi512 Jun 11, 2022
a0a61c6
add lint
maxi512 Jun 20, 2022
9716f23
some message
maxi512 Jun 20, 2022
a098fd8
Keep calm and commit
maxi512 Jun 20, 2022
b0d4d27
lint in husky
maxi512 Jun 20, 2022
b321162
add npm install
maxi512 Jun 20, 2022
9732fdc
add lint-sataged
maxi512 Jun 20, 2022
d714681
Add draft pr
maxi512 Jun 26, 2022
1b1701b
add secret
maxi512 Jun 26, 2022
c629be9
add new permissions
maxi512 Jun 26, 2022
3916c4a
:fix: another try
maxi512 Jun 26, 2022
873b7fa
change token
maxi512 Jun 26, 2022
dc25532
Merge branch 'main' into feature/test-draft3
maxi512 Jun 26, 2022
d0e91ca
:fix: another try
maxi512 Jun 26, 2022
c20517e
change permissions
maxi512 Jun 27, 2022
07a56bf
:fix: some changes
maxi512 Jun 27, 2022
96a8836
Merge branch 'main' of https://github.com/maxi512/typescript-api into…
maxi512 Jul 9, 2022
cd991f9
Move project workflows to directory
maxi512 Jul 9, 2022
0211415
To directory
maxi512 Jul 9, 2022
d731291
change event
maxi512 Jul 9, 2022
7436eb9
some change
maxi512 Jul 9, 2022
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
17 changes: 17 additions & 0 deletions .github/workflows/create_PR_from_feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
destination_branch: "test"
pr_title: "Pull ${{ github.ref_name }} into test"
pr_body: ":crown: PR Automatizado por la action"
pr_draft: true
github_token: ${{ secrets.GITHUB_TOKEN }}

comment-pr:
Expand Down Expand Up @@ -50,3 +51,19 @@ jobs:
if: always()
with:
comment_title: "Tests Results"

- run: gh pr ready
env:
GITHUB_TOKEN: ${{ secrets.GHTOKEN }}

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run lint
31 changes: 31 additions & 0 deletions .github/workflows/deploy_to_production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy a produccion

on: [workflow_dispatch]

jobs:
merge-and-deploy-to-production:
runs-on: ubuntu-latest
steps:
- name: Merge test -> main
uses: devmasx/merge-branch@master
with:
type: now
from_branch: test
target_branch: main
github_token: ${{ github.token }}

- uses: actions/checkout@v3

- name: Build, Push and Release a Docker container to Heroku.
uses: gonuit/heroku-docker-deploy@v1.3.3
with:
email: ${{ secrets.HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_APP_NAME_MAIN }}

- uses: HiromiShikata/gh-actions-move-all-cards-on-projects@v1.0.1
with:
project_name: Features
from_column_name: Desplegado en Testing
to_column_name: Desplegado en Produccion
github_token: ${{ secrets.GHTOKEN }}
24 changes: 0 additions & 24 deletions .github/workflows/deploy_to_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,6 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- run: npm ci
- run: npm run build --if-present

- name: Build, Push and Release a Docker container to Heroku.
uses: gonuit/heroku-docker-deploy@v1.3.3
Expand All @@ -39,18 +30,3 @@ jobs:
apiKey: ${{ secrets.POSTMAN_API_KEY }}
collection: ${{ secrets.POSTMAN_COLLECTION }}
environment: ${{ secrets.POSTMAN_ENVIRONMENT }}

- name: Merge test -> main
uses: devmasx/merge-branch@master
with:
type: now
from_branch: test
target_branch: main
github_token: ${{ github.token }}

- uses: HiromiShikata/gh-actions-move-all-cards-on-projects@v1.0.1
with:
project_name: Features
from_column_name: Desplegado en Testing
to_column_name: Desplegado en Produccion
github_token: ${{ secrets.GHTOKEN }}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Mover la tarjeta del pull request a "To do"

on:
pull_request:
types: [opened]
types: [converted_to_draft]

jobs:
automate-project-columns:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,4 @@ dist

# TernJS port file
.tern-port
junit.xml
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
Loading