Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
15 changes: 15 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"extends": ["@commitlint/config-conventional"],
"rules": {
"type-enum": [
2,
"always",
["feat", "fix", "sec", "test", "refactor", "chore", "docs", "ci"]
],
"scope-enum": [
2,
"always",
["backend", "frontend", "iot", "ci", "deps", "core"]
]
}
}
3 changes: 3 additions & 0 deletions .github/workflows/backend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,18 @@

steps:
- name: Checkout Source Code
uses: actions/checkout@v3

Check failure on line 22 in .github/workflows/backend-ci.yml

View workflow job for this annotation

GitHub Actions / Validate GitHub Actions Workflows

[actionlint] reported by reviewdog 🐶 the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue [action] Raw Output: e:.github/workflows/backend-ci.yml:22:13: the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue [action]
- name: Validate Commit Messages
uses: wagoid/commitlint-github-action@v5


- name: Setup Python Environment
uses: actions/setup-python@v4

Check failure on line 28 in .github/workflows/backend-ci.yml

View workflow job for this annotation

GitHub Actions / Validate GitHub Actions Workflows

[actionlint] reported by reviewdog 🐶 the runner of "actions/setup-python@v4" action is too old to run on GitHub Actions. update the action's version to fix this issue [action] Raw Output: e:.github/workflows/backend-ci.yml:28:13: the runner of "actions/setup-python@v4" action is too old to run on GitHub Actions. update the action's version to fix this issue [action]
with:
python-version: '3.11'

- name: Cache Pip Dependencies
uses: actions/cache@v3

Check failure on line 33 in .github/workflows/backend-ci.yml

View workflow job for this annotation

GitHub Actions / Validate GitHub Actions Workflows

[actionlint] reported by reviewdog 🐶 the runner of "actions/cache@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue [action] Raw Output: e:.github/workflows/backend-ci.yml:33:13: the runner of "actions/cache@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue [action]
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('backend-data-elaborator/api/requirements.txt') }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
# Step 1: Check out the repository code.
- name: Checkout repository
uses: actions/checkout@v4
- name: Validate Commit Messages
uses: wagoid/commitlint-github-action@v5

# Step 2: Authenticate with the GitHub Container Registry.
- name: Log in to the Container Registry
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/devops-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: DevOps CI

on:
push:
branches: [ "main", "develop" ]
paths:
- '.github/workflows/**'
pull_request:
branches: [ "main" ]
paths:
- '.github/workflows/**'

jobs:
actionlint:
name: Validate GitHub Actions Workflows
runs-on: ubuntu-latest
steps:
- name: Checkout Source Code
uses: actions/checkout@v3

Check failure on line 19 in .github/workflows/devops-ci.yml

View workflow job for this annotation

GitHub Actions / Validate GitHub Actions Workflows

[actionlint] reported by reviewdog 🐶 the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue [action] Raw Output: e:.github/workflows/devops-ci.yml:19:15: the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue [action]

- name: Run Actionlint
uses: reviewdog/action-actionlint@v1
2 changes: 2 additions & 0 deletions .github/workflows/frontend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,17 @@

steps:
- name: Checkout Source Code
uses: actions/checkout@v3

Check failure on line 22 in .github/workflows/frontend-ci.yml

View workflow job for this annotation

GitHub Actions / Validate GitHub Actions Workflows

[actionlint] reported by reviewdog 🐶 the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue [action] Raw Output: e:.github/workflows/frontend-ci.yml:22:13: the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue [action]
- name: Validate Commit Messages
uses: wagoid/commitlint-github-action@v5

- name: Setup Node.js Environment
uses: actions/setup-node@v3

Check failure on line 27 in .github/workflows/frontend-ci.yml

View workflow job for this annotation

GitHub Actions / Validate GitHub Actions Workflows

[actionlint] reported by reviewdog 🐶 the runner of "actions/setup-node@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue [action] Raw Output: e:.github/workflows/frontend-ci.yml:27:13: the runner of "actions/setup-node@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue [action]
with:
node-version: '18'

- name: Cache Node Modules
uses: actions/cache@v3

Check failure on line 32 in .github/workflows/frontend-ci.yml

View workflow job for this annotation

GitHub Actions / Validate GitHub Actions Workflows

[actionlint] reported by reviewdog 🐶 the runner of "actions/cache@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue [action] Raw Output: e:.github/workflows/frontend-ci.yml:32:13: the runner of "actions/cache@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue [action]
with:
path: frontend-mobile-app/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('frontend-mobile-app/package-lock.json') }}
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/pr-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: PR Lint

on:
pull_request:
types:
- opened
- edited
- synchronize

jobs:
pr-title-validation:
name: Validate PR Title
runs-on: ubuntu-latest
steps:
- name: Semantic PR Check
uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
scopes: |
backend
frontend
iot
ci
deps
core
requireScope: true
Loading