Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
149 commits
Select commit Hold shift + click to select a range
2261082
Update datadog.yml
batbattur Apr 19, 2023
cad71b3
Update datadog.yml
batbattur Apr 19, 2023
2b8e7a4
Update datadog.yml
batbattur Apr 19, 2023
5346df8
Merge pull request #120 from batbattur/batbattur-patch-111
batbattur Apr 19, 2023
4d09ed2
renovate-self-hosted-config
batbattur Apr 20, 2023
48d7a4b
renovate workflow
batbattur Apr 20, 2023
3eb9c2e
Update workflow
batbattur Apr 20, 2023
3317950
Merge pull request #121 from batbattur/renovate-self-hosted-GHA
batbattur Apr 20, 2023
fd01fed
fix
batbattur Apr 20, 2023
62830de
Merge pull request #123 from batbattur/renovate-self-hosted-GHA
batbattur Apr 20, 2023
533b70f
Update renovate.yml
batbattur Apr 20, 2023
f482b9d
Add pnpm7.4.0 and shelljs0.3.0
batbattur Apr 20, 2023
d101fe0
Merge branch 'master' of https://github.com/batbattur/All
batbattur Apr 20, 2023
98747f3
include repository for renovate
batbattur Apr 20, 2023
b80fb50
renovate update repository
batbattur Apr 20, 2023
561fe58
test pnpmfile
batbattur Apr 20, 2023
55093e1
test
batbattur Apr 20, 2023
9f4995b
test gitAuthor
batbattur Apr 21, 2023
d51b537
disable renovate
batbattur Apr 21, 2023
23a218c
test again
batbattur Apr 21, 2023
44c821a
add react-commerce as submodule
batbattur Apr 21, 2023
283498e
Renovate configJS hostrules
batbattur Apr 24, 2023
c64b5c0
use the latest renovate
batbattur Apr 24, 2023
62887b6
testing submodule fix
batbattur Apr 24, 2023
8190e5b
testing
batbattur Apr 24, 2023
8a36457
testing
batbattur Apr 24, 2023
4a2d507
Delete submodules
batbattur Apr 25, 2023
5861ec1
test adding submodule
batbattur Apr 25, 2023
fd47af3
add font awesome
batbattur Apr 26, 2023
63a9cae
testing
batbattur Apr 26, 2023
d01d255
testing
batbattur Apr 26, 2023
43829a2
test npm token
batbattur Apr 27, 2023
a15da4d
testing
batbattur Apr 27, 2023
22146b5
test
batbattur Apr 27, 2023
e35eced
add npmrc config
batbattur Apr 27, 2023
b23c2c8
test
batbattur Apr 27, 2023
d4d6f3d
test
batbattur Apr 27, 2023
5936fbb
test
batbattur Apr 27, 2023
573786b
testing
batbattur Apr 27, 2023
4c31187
test
batbattur Apr 27, 2023
41c063d
working stage
batbattur Apr 27, 2023
196c902
move renoate config to .github
batbattur Apr 27, 2023
1ff6834
test
batbattur Apr 27, 2023
c9ad9b4
Update checklist.yml
batbattur May 9, 2023
23e1047
Update checklist.yml
batbattur May 9, 2023
741f9eb
Update checklist.yml
batbattur May 9, 2023
a298b83
Update checklist.yml
batbattur May 9, 2023
2c79d5b
Update checklist.yml
batbattur May 9, 2023
18a4dd5
Update checklist.yml
batbattur May 9, 2023
5ab7bb1
Update checklist.yml
batbattur May 9, 2023
2dc36d7
Update checklist.yml
batbattur May 9, 2023
62fe798
Update checklist.yml
batbattur May 9, 2023
2166122
Update checklist.yml
batbattur May 9, 2023
7488ba0
Update checklist.yml
batbattur May 9, 2023
da6061d
Update checklist.yml
batbattur May 9, 2023
a6573f7
Update checklist.yml
batbattur May 9, 2023
9df7422
Update checklist.yml
batbattur May 9, 2023
1b3386c
Update checklist.yml
batbattur May 9, 2023
2b1a2c4
Update checklist.yml
batbattur May 9, 2023
ebe4c52
Update checklist.yml
batbattur May 9, 2023
0f7734a
Update checklist.yml
batbattur May 9, 2023
3d30752
Update checklist.yml
batbattur May 9, 2023
181468e
Update checklist.yml
batbattur May 9, 2023
66248b0
Update checklist.yml
batbattur May 9, 2023
937da92
Update checklist.yml
batbattur May 9, 2023
0368d54
Update checklist.yml
batbattur May 9, 2023
e36196f
Update checklist.yml
batbattur May 9, 2023
d95bafd
Update checklist.yml
batbattur May 9, 2023
8b10e0d
Update checklist.yml
batbattur May 9, 2023
fe0e0b1
Update checklist.yml
batbattur May 9, 2023
be1381b
Update checklist.yml
batbattur May 9, 2023
de1657f
Update checklist.yml
batbattur May 9, 2023
7192ad1
Update checklist.yml
batbattur May 9, 2023
8078050
Update renovateConfig.js
batbattur May 17, 2023
d938cef
Delete .npmrc
batbattur May 17, 2023
370b7d3
Create testintenv.yml
batbattur Jun 6, 2023
aaaf7b2
Update action.yml
batbattur Jun 6, 2023
72fc222
Update testintenv.yml
batbattur Jun 6, 2023
b3439dc
Update action.yml
batbattur Jun 6, 2023
8a08708
test workflow inputs
batbattur Jun 6, 2023
69c307a
testing security updates
batbattur Jul 5, 2023
bf03c3d
use latest renovate
batbattur Jul 5, 2023
fe9bcb3
use package-lock.json
batbattur Jul 5, 2023
c3e1118
testing
batbattur Jul 5, 2023
88764bc
add description
batbattur Jul 5, 2023
e53c555
testing schedule that will never hit
batbattur Jul 5, 2023
a18797b
remove existing config
batbattur Jul 5, 2023
4ec4e35
testing
batbattur Jul 5, 2023
fb31723
testing
batbattur Jul 5, 2023
1b760ac
testing
batbattur Jul 5, 2023
8e348c1
testing
batbattur Jul 5, 2023
2f6a6a7
update schedule
batbattur Jul 5, 2023
7d95d17
testing never
batbattur Jul 5, 2023
0f6ad41
use past cron date
batbattur Jul 5, 2023
97e13ee
testing february 31
batbattur Jul 6, 2023
61db6a9
stop scheduling
batbattur Jul 6, 2023
18688f4
testing feb 31
batbattur Jul 6, 2023
19bf8f3
testing
batbattur Jul 6, 2023
75e2c20
testing
batbattur Jul 6, 2023
fee1730
Update checklist.yml
batbattur Jul 11, 2023
ecdae86
Update checklist.yml
batbattur Jul 11, 2023
6d4bb48
Update action.yml
batbattur Jul 11, 2023
7771c23
Update checklist.yml
batbattur Jul 11, 2023
94de8d5
Update action.yml
batbattur Jul 11, 2023
52787da
Update checklist.yml
batbattur Jul 11, 2023
e1a3789
Update action.yml
batbattur Jul 11, 2023
ce6c9ef
Update action.yml
batbattur Jul 11, 2023
602aab4
Update action.yml
batbattur Jul 11, 2023
77beca7
testing
batbattur Jul 12, 2023
709ec17
testing
batbattur Jul 12, 2023
66124cd
testing
batbattur Jul 12, 2023
deb2280
testing
batbattur Jul 12, 2023
9f9b37a
testing
batbattur Jul 12, 2023
6ec1a74
testing
batbattur Jul 12, 2023
b1480b2
testing
batbattur Jul 12, 2023
59f8bcf
testing
batbattur Jul 12, 2023
ca6bca5
testing
batbattur Jul 12, 2023
5b515dd
testing
batbattur Jul 12, 2023
a2fd6ec
testing
batbattur Jul 12, 2023
37a9029
testing
batbattur Jul 12, 2023
df4e2b0
testing
batbattur Jul 12, 2023
9d86e2d
testing
batbattur Jul 12, 2023
f6a1ae2
testing
batbattur Jul 12, 2023
b65e6cd
testing
batbattur Jul 12, 2023
755b8f4
testing
batbattur Jul 12, 2023
9f569ca
testing
batbattur Jul 12, 2023
92546af
testing
batbattur Jul 12, 2023
652f379
testing
batbattur Jul 12, 2023
0fafc40
Create testingworkflow.yml
batbattur Aug 17, 2023
3c88ceb
validate
batbattur Aug 28, 2023
cef5925
Merge branch 'master' of https://github.com/batbattur/All
batbattur Aug 28, 2023
bf77281
use expression
batbattur Aug 28, 2023
018d0c0
tesitng
batbattur Aug 28, 2023
249416e
testing
batbattur Aug 28, 2023
4ec1f14
testing
batbattur Aug 28, 2023
33d1fd6
testing
batbattur Aug 28, 2023
b63de81
testing
batbattur Aug 28, 2023
d7be11e
testing
batbattur Aug 28, 2023
2433841
testing
batbattur Aug 28, 2023
744b8e1
testing
batbattur Oct 4, 2023
8407747
testing
batbattur Oct 4, 2023
4907f1c
test
batbattur Oct 4, 2023
c881f71
testing
batbattur Oct 4, 2023
e831c0b
testing
batbattur Oct 4, 2023
f7df8e5
add token
batbattur Oct 4, 2023
4a1b36e
check github job name
batbattur Dec 4, 2023
d1bda0b
testing
batbattur Dec 4, 2023
0d982c2
testing edited event
batbattur Dec 8, 2023
0168412
testing
batbattur Dec 8, 2023
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
66 changes: 62 additions & 4 deletions .github/actions/setup-ci-env-vars/action.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,67 @@
name: Set CI Environment Variables
description: Set CI Environment Variables
runs:
using: 'composite'
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: echo "$GITHUB_CONTEXT"
# - name: Dump GitHub context
# env:
# GITHUB_CONTEXT: ${{ toJSON(github) }}
# run: echo "$GITHUB_CONTEXT"
# shell: bash

- name: echo COMMIT
run: |
echo ${{ github.job }}
echo ${{ github.run_id }}
shell: bash

# - name: RUN ATTEMPT AND NUMBER
# shell: bash
# run: |
# echo "RUN ATTEMPT: ${{ github.run_attempt }}"
# echo "RUN NUMBER: ${{ github.run_number }}"

# - name: check-attempt
# shell: bash
# id: check-attempt
# run: |
# echo "INSIDE CHECK ATTEMPT"
# echo "RUN ATTEMPT: ${{ github.run_attempt }}"
# echo "first_attempt=$(echo ${{ github.run_attempt }} == 1 | bc)" >> $GITHUB_OUTPUT

# - name: Exit if not the first attempt
# if: steps.check-attempt.outputs.first_attempt == 0
# shell: bash
# run: |
# echo "INSIDE Exit if not the first attempt"
# echo "EXITING"
# exit 1


# - name: check-attempt output
# shell: bash
# run: |
# echo "CHECKING check-attempt output:" ${{ steps.check-attempt.outputs.first_attempt }}
# echo ${{ steps.check-attempt.outputs.first_attempt }}
# exit 1

- name: TEST 3
shell: bash
if: github.run_attempt > 1
run: |
echo "RUN ATTEMPT: ${{ github.run_attempt }}"
echo "is_rerun=true" >> $GITHUB_ENV
exit 1

# - name: failure
# shell: bash
# if: failure()
# run: |
# echo "RUNNING THE FAILURE CASE"

# - name: alwaysaaa
# shell: bash
# if: always()
# run: |
# echo "RUNNING THE ALWAYS CASE"

29 changes: 29 additions & 0 deletions .github/actions/validate/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: validate
description: validate
inputs:
validate:
description: 'Should validate after deploying'
required: true
default: 'true'

runs:
using: 'composite'
steps:
- name: VALIDATING
if: inputs.validate == 'true'
shell: bash
run: echo "VALIDATING"

- name: VALIDATING FULLY WRAPPED
if: ${{ inputs.validate == 'true' }}
shell: bash
run: echo "VALIDATING"

- name: VALIDATING WITH EXISITNG EXPRESSION
if: ${{ inputs.validate }} == 'true'
shell: bash
run: echo "BUG ON MASTER"

- name: TEST
shell: bash
run: echo "TEST"
51 changes: 51 additions & 0 deletions .github/renovateConfig.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
module.exports = {
"extends": ["config:base"],
"stabilityDays": 7,
"labels": ["dependencies", "renovate"],
"git-submodules": {
"enabled": true
},
"dependencyDashboard": true,
"dependencyDashboardOSVVulnerabilitySummary": "all",
"osvVulnerabilityAlerts": true,
"major": {
"dependencyDashboardApproval": true
},
"onboarding": false,
"requireConfig": false,
"prHourlyLimit": 0,
"packageRules": [
{
"matchDepTypes": ["dependencies", "require"],
"prPriority": 1
},
{
"matchDepTypes": ["devDependencies", "requireDev"],
"prPriority": 0
},
{
"description": "Disabled Paths",
"matchPaths": ["Testing/**"],
// "dependencyDashboardApproval": true
"schedule": ["* 0 31 2 *"],
"prPriority": -1
}
],
"rebaseWhen": "conflicted",
"enabledManagers": ["npm", "composer", "git-submodules", "github-actions"],
"force": {
"constraints": {
"node": "16.14.0",
"pnpm": "8.5.0"
}
},
"cloneSubmodules": true,
"allowScripts": true,
"ignoreScripts": false,
"platform": "github",
"branchPrefix": "test-renovate/",
"repositories": [
{"repository": "batbattur/All"}
],
"gitAuthor": "Renovate Bot <bot@renovateapp.com>",
};
76 changes: 55 additions & 21 deletions .github/workflows/checklist.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: QA
on:
pull_request:
types: [opened, synchronize, reopened, edited]
workflow_dispatch:
push:
branches:
- master
Expand All @@ -18,34 +20,66 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: echo "$GITHUB_CONTEXT"

- name: Print run_id
run: |
echo ${{ github.run_id }}

- name: Deploy
if: cancelled()
run: |
echo "this was cancellasdasded"

checklist_job1:
runs-on: ubuntu-latest
name: checklist_job1
steps:
- name: Checkout code
run: jq --version
uses: actions/checkout@v2

- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: echo "$GITHUB_CONTEXT"

- name: Print TESTING
- name: Print run_id
run: |
echo ${{ github.run_id }}

- name: print job name
run: |
echo ${{ github.job }}

- name: Exit
run: exit 1

- name: Cancel all other jobs on failure
if: failure()
run: |
echo ${{ github.workflow }}
echo ${{ github.ref }}
echo ${{ github.run_number }}
shell: bash

- name: Print github.sha
run: echo ${{ github.sha }}

- name: Print github.event.pull_request.head.sha
run: echo ${{ github.event.pull_request.head.sha }}


- name: Get head commit sha from the push event and set it to push_head_commit env
run: echo "push_head_commit=$(echo $COMMITS_JSON | jq ".[length - 2].id")" >> $GITHUB_ENV
shell: bash
echo "cancel all other jobs"
gh run cancel ${{ github.run_id }}
env:
COMMITS_JSON: ${{ toJSON(github.event.commits) }}
GH_TOKEN: ${{ github.token }}

- name: Print sha of the head commit
run: echo "$push_head_commit"
shell: bash
checklist_job2:
runs-on: ubuntu-latest
name: checklist_job1
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Print run_id
run: |
echo ${{ github.run_id }}

- name: sleep 180
run: sleep 180

- name: Deploy
if: cancelled()
run: |
echo "this was cancelled"
18 changes: 13 additions & 5 deletions .github/workflows/datadog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,22 @@ jobs:
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: echo "$GITHUB_CONTEXT"


- name: Check if the pull was closed
if: github.event.workflow_run.event == 'pull_request' && join(github.event.workflow_run.pull_requests) == ''
run: echo "skip=true" >> $GITHUB_ENV
if: github.event.workflow_run.event == 'pull_request'
run: |
echo "$PULL_REQUESTS"
if [ -z "$PULL_REQUESTS" ]
then
echo "skip=true" >> $GITHUB_ENV
else
echo "skip=false" >> $GITHUB_ENV
fi
env:
PULL_REQUESTS: ${{ join(github.event.workflow_run.pull_requests) }}

- name: Get Pull Info
uses: octokit/request-action@v2.x
if: github.event.workflow_run.event == 'pull_request' && env.skip != 'true'
if: github.event.workflow_run.event == 'pull_request' && env.skip == 'false'
id: get_action_job_data
with:
route: GET /repos/${{ github.repository }}/pulls/${{github.event.workflow_run.pull_requests[0].number}}
Expand All @@ -33,7 +41,7 @@ jobs:

- name: Skip sending metrics on draft pulls or the testing label
id: skip-check
if: github.event.workflow_run.event == 'pull_request' && env.skip != 'true'
if: github.event.workflow_run.event == 'pull_request' && env.skip == 'false'
run: |
TESTING_LABEL=$(echo $job_data_json | jq '.labels | .[]? | select(.name == "${{ env.skip-label }}")')
DRAFT_STATUS=$(echo $job_data_json | jq '.draft')
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: DEPLOY
on:
pull_request:
push:
branches:
- master
workflow_dispatch:

env:
COMMIT: ${{ github.sha }}

jobs:
deploy:
runs-on: ubuntu-latest
name: deploy
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: fast-deploy
uses: ./.github/actions/validate
with:
validate: 'true'
28 changes: 28 additions & 0 deletions .github/workflows/fast-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: FAST DEPLOY
on:
workflow_dispatch:
inputs:
validate:
description: 'Validate deploys?'
required: true
default: 'false'
type: choice
options:
- 'false'
- 'true'

env:
COMMIT: ${{ github.sha }}

jobs:
fast-deploy:
runs-on: ubuntu-latest
name: fast-deploy
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: fast-deploy
uses: ./.github/actions/validate
with:
validate: ${{ inputs.validate }}
28 changes: 28 additions & 0 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Renovate

on:
workflow_dispatch:
# schedule:
# - cron: '0/30 * * * *'

jobs:
renovate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive

# - name: Run
# run: |
# git submodule sync
# git submodule update --init --recursive

- name: Self-hosted Renovate
uses: renovatebot/github-action@v38.1.2
with:
configurationFile: .github/renovateConfig.js
token: ${{ secrets.RENOVATE_TOKEN }}
env:
LOG_LEVEL: 'debug'
13 changes: 13 additions & 0 deletions .github/workflows/testingworkflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: testinggg workflow
on:
pull_request:
push:
workflow_dispatch:

jobs:
test1:
runs-on: ubuntu-latest
name: testinggg workflow
steps:
- name: Checkout code
run: whoami
Loading