-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ed5af1
commit 4cd95bf
Showing
14 changed files
with
24,495 additions
and
24,482 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 |
---|---|---|
@@ -1,68 +1,71 @@ | ||
{ | ||
"root": true, | ||
"ignorePatterns": ["**/*"], | ||
"plugins": ["@nx"], | ||
"overrides": [ | ||
{ | ||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], | ||
"rules": { | ||
"@nx/enforce-module-boundaries": [ | ||
"error", | ||
{ | ||
"enforceBuildableLibDependency": true, | ||
"allow": [], | ||
"depConstraints": [ | ||
{ | ||
"sourceTag": "scope:shared", | ||
"onlyDependOnLibsWithTags": ["scope:shared"] | ||
}, | ||
{ | ||
"sourceTag": "scope:application", | ||
"onlyDependOnLibsWithTags": [ | ||
"scope:application", | ||
"scope:infrastructure", | ||
"scope:shared" | ||
"root": true, | ||
"ignorePatterns": ["**/*"], | ||
"plugins": ["@nx"], | ||
"overrides": [ | ||
{ | ||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], | ||
"rules": { | ||
"@nx/enforce-module-boundaries": [ | ||
"error", | ||
{ | ||
"enforceBuildableLibDependency": true, | ||
"allow": [], | ||
"depConstraints": [ | ||
{ | ||
"sourceTag": "scope:shared", | ||
"onlyDependOnLibsWithTags": ["scope:shared"] | ||
}, | ||
{ | ||
"sourceTag": "scope:application", | ||
"onlyDependOnLibsWithTags": [ | ||
"scope:application", | ||
"scope:infrastructure", | ||
"scope:shared" | ||
] | ||
}, | ||
{ | ||
"sourceTag": "scope:domain", | ||
"onlyDependOnLibsWithTags": [ | ||
"scope:domain", | ||
"scope:shared" | ||
] | ||
}, | ||
{ | ||
"sourceTag": "scope:infrastructure", | ||
"onlyDependOnLibsWithTags": [ | ||
"scope:infrastructure", | ||
"scope:domain", | ||
"scope:shared" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"sourceTag": "scope:domain", | ||
"onlyDependOnLibsWithTags": ["scope:domain", "scope:shared"] | ||
}, | ||
{ | ||
"sourceTag": "scope:infrastructure", | ||
"onlyDependOnLibsWithTags": [ | ||
"scope:infrastructure", | ||
"scope:domain", | ||
"scope:shared" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"files": ["*.ts", "*.tsx"], | ||
"extends": ["plugin:@nx/typescript"], | ||
"rules": { | ||
"@typescript-eslint/no-extra-semi": "error", | ||
"no-extra-semi": "off" | ||
} | ||
}, | ||
{ | ||
"files": ["*.js", "*.jsx"], | ||
"extends": ["plugin:@nx/javascript"], | ||
"rules": { | ||
"@typescript-eslint/no-extra-semi": "error", | ||
"no-extra-semi": "off" | ||
} | ||
}, | ||
{ | ||
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"], | ||
"env": { | ||
"jest": true | ||
}, | ||
"rules": {} | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"files": ["*.ts", "*.tsx"], | ||
"extends": ["plugin:@nx/typescript"], | ||
"rules": { | ||
"@typescript-eslint/no-extra-semi": "error", | ||
"no-extra-semi": "off" | ||
} | ||
}, | ||
{ | ||
"files": ["*.js", "*.jsx"], | ||
"extends": ["plugin:@nx/javascript"], | ||
"rules": { | ||
"@typescript-eslint/no-extra-semi": "error", | ||
"no-extra-semi": "off" | ||
} | ||
}, | ||
{ | ||
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"], | ||
"env": { | ||
"jest": true | ||
}, | ||
"rules": {} | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
interval: 'weekly' | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
interval: 'weekly' | ||
|
||
- package-ecosystem: 'npm' | ||
directory: '/' | ||
schedule: | ||
interval: 'weekly' | ||
- package-ecosystem: 'npm' | ||
directory: '/' | ||
schedule: | ||
interval: 'weekly' | ||
|
||
- package-ecosystem: 'docker' | ||
directory: '/' | ||
schedule: | ||
interval: 'weekly' | ||
- package-ecosystem: 'docker' | ||
directory: '/' | ||
schedule: | ||
interval: 'weekly' |
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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
name: Notify on Workflow Failure | ||
on: | ||
workflow_run: | ||
workflows: ['Feature', 'Versioning', 'Release'] | ||
types: | ||
- failure | ||
workflow_run: | ||
workflows: ['Feature', 'Versioning', 'Release'] | ||
types: | ||
- failure | ||
|
||
jobs: | ||
notify: | ||
if: ${{ github.event.workflow_run.conclusion == 'failure' }} | ||
runs-on: ubuntu-latest | ||
notify: | ||
if: ${{ github.event.workflow_run.conclusion == 'failure' }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: API Alerts Notify | ||
uses: apialerts/notify-action@v1 | ||
with: | ||
api_key: ${{ secrets.API_ALERTS_KEY }} | ||
message: '❌ Feature - Workflow *${{ github.event.workflow_run.event }}* has failed in repository *${{ github.repository }}*.' | ||
link: '${{ github.event.workflow_run.event }}' | ||
steps: | ||
- name: API Alerts Notify | ||
uses: apialerts/notify-action@v1 | ||
with: | ||
api_key: ${{ secrets.API_ALERTS_KEY }} | ||
message: '❌ Feature - Workflow *${{ github.event.workflow_run.event }}* has failed in repository *${{ github.repository }}*.' | ||
link: '${{ github.event.workflow_run.event }}' |
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 |
---|---|---|
@@ -1,79 +1,79 @@ | ||
name: Feature | ||
|
||
on: | ||
push: | ||
branches: [feature/**/*, feature/*] | ||
push: | ||
branches: [feature/**/*, feature/*] | ||
|
||
env: | ||
NX_BRANCH: ${GITHUB_REF##*/} | ||
NX_BRANCH: ${GITHUB_REF##*/} | ||
|
||
jobs: | ||
Feature: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: nrwl/nx-set-shas@v4 | ||
|
||
- name: 📦 Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 21 | ||
cache: 'npm' | ||
|
||
- name: 📦 Install NX-Linux | ||
run: npm install @nx/nx-linux-x64-gnu | ||
|
||
- name: 📦 Install dependencies | ||
run: npm install | ||
|
||
- name: 🚀 Check Format | ||
run: npm run nx format:check | ||
|
||
- name: 🚀 Lint Apps | ||
run: npm run nx affected:lint --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }} --parallel --maxParallel=3 | ||
|
||
- name: 🚀 Test Apps | ||
run: npm run nx affected:test --passWithNoTests --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }} --parallel --maxParallel=3 | ||
|
||
- name: 🚀 e2e Apps | ||
run: npm run nx affected:e2e --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }} --parallel --maxParallel=3 | ||
|
||
- name: 🚀 Build Apps | ||
run: npm run nx affected:build --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }} --parallel --maxParallel=3 | ||
|
||
- name: 🪐 Patch version for each merge | ||
id: taggerDryRun | ||
uses: anothrNick/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
WITH_V: true | ||
DEFAULT_BUMP: patch | ||
PRE_RELEASE: true | ||
|
||
- name: 🪐 Output Tag | ||
run: | | ||
echo "${{ steps.taggerDryRun.outputs.new_tag }}" | ||
- name: 📦 Login into Docker | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: 🏗 Build Docker Images | ||
run: npm run nx run-many -- --target=docker-build --all --VERSION=${{ steps.taggerDryRun.outputs.new_tag }} | ||
|
||
- name: 🏗 Push Docker Images | ||
run: npm run nx run-many -- --target=docker-push --all --VERSION=${{ steps.taggerDryRun.outputs.new_tag }} | ||
|
||
- name: API Alerts Notify | ||
uses: apialerts/notify-action@v1 | ||
with: | ||
api_key: ${{ secrets.API_ALERTS_KEY }} | ||
message: '🚢 Feature - New Patch Released (${{ steps.taggerDryRun.outputs.new_tag }})' | ||
tags: 'Azkaban,Feature' | ||
link: 'https://api.toxictoast.de/swagger' | ||
Feature: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: nrwl/nx-set-shas@v4 | ||
|
||
- name: 📦 Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 21 | ||
cache: 'npm' | ||
|
||
- name: 📦 Install NX-Linux | ||
run: npm install @nx/nx-linux-x64-gnu | ||
|
||
- name: 📦 Install dependencies | ||
run: npm install | ||
|
||
- name: 🚀 Check Format | ||
run: npm run nx format:check | ||
|
||
- name: 🚀 Lint Apps | ||
run: npm run nx affected:lint --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }} --parallel --maxParallel=3 | ||
|
||
- name: 🚀 Test Apps | ||
run: npm run nx affected:test --passWithNoTests --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }} --parallel --maxParallel=3 | ||
|
||
- name: 🚀 e2e Apps | ||
run: npm run nx affected:e2e --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }} --parallel --maxParallel=3 | ||
|
||
- name: 🚀 Build Apps | ||
run: npm run nx affected:build --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }} --parallel --maxParallel=3 | ||
|
||
- name: 🪐 Patch version for each merge | ||
id: taggerDryRun | ||
uses: anothrNick/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
WITH_V: true | ||
DEFAULT_BUMP: patch | ||
PRE_RELEASE: true | ||
|
||
- name: 🪐 Output Tag | ||
run: | | ||
echo "${{ steps.taggerDryRun.outputs.new_tag }}" | ||
- name: 📦 Login into Docker | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: 🏗 Build Docker Images | ||
run: npm run nx run-many -- --target=docker-build --all --VERSION=${{ steps.taggerDryRun.outputs.new_tag }} | ||
|
||
- name: 🏗 Push Docker Images | ||
run: npm run nx run-many -- --target=docker-push --all --VERSION=${{ steps.taggerDryRun.outputs.new_tag }} | ||
|
||
- name: API Alerts Notify | ||
uses: apialerts/notify-action@v1 | ||
with: | ||
api_key: ${{ secrets.API_ALERTS_KEY }} | ||
message: '🚢 Feature - New Patch Released (${{ steps.taggerDryRun.outputs.new_tag }})' | ||
tags: 'Azkaban,Feature' | ||
link: 'https://api.toxictoast.de/swagger' |
Oops, something went wrong.