Skip to content

Commit

Permalink
chore: prettier reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
ToxicToast committed Jun 11, 2024
1 parent 2ed5af1 commit 4cd95bf
Show file tree
Hide file tree
Showing 14 changed files with 24,495 additions and 24,482 deletions.
133 changes: 68 additions & 65 deletions .eslintrc.json
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": {}
}
]
}
24 changes: 12 additions & 12 deletions .github/dependabot.yml
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'
28 changes: 14 additions & 14 deletions .github/workflows/failed.yml
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 }}'
144 changes: 72 additions & 72 deletions .github/workflows/feature.yml
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'
Loading

0 comments on commit 4cd95bf

Please sign in to comment.