-
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into e2e_tests_for_all
- Loading branch information
Showing
46 changed files
with
21,359 additions
and
16,598 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
chat: | ||
auto_reply: true | ||
code_generation: | ||
docstrings: | ||
language: en-US | ||
early_access: true | ||
language: en-US | ||
reviews: | ||
assess_linked_issues: true | ||
auto_apply_labels: false | ||
auto_review: | ||
enabled: true | ||
drafts: true | ||
collapse_walkthrough: false | ||
high_level_summary: true | ||
high_level_summary_in_walkthrough: true | ||
labeling_instructions: [] | ||
poem: false | ||
profile: chill | ||
request_changes_workflow: false | ||
review_status: true | ||
sequence_diagrams: false |
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
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
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: "Auto Label Issues" | ||
on: | ||
issues: | ||
types: | ||
- edited | ||
- opened | ||
|
||
jobs: | ||
label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Apply Labels to Issues | ||
uses: actions/[email protected] | ||
with: | ||
script: | | ||
const issue = context.payload.issue; | ||
const keywords = { | ||
"bug": ["error", "failure", "not working"], | ||
"enhancement": ["add", "feature request", "improve"], | ||
"question": ["clarification", "help", "how to"] | ||
}; | ||
let labels = []; | ||
for (const [label, words] of Object.entries(keywords)) { | ||
if (words.some(word => issue.title.toLowerCase().includes(word) || issue.body.toLowerCase().includes(word))) { | ||
labels.push(label); | ||
} | ||
} | ||
if (labels.length > 0) { | ||
github.rest.issues.addLabels({ | ||
issue_number: context.issue.number, | ||
labels: labels, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo | ||
}); | ||
} |
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 |
---|---|---|
|
@@ -44,31 +44,37 @@ jobs: | |
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
cache: poetry | ||
cache: 'poetry' | ||
cache-dependency-path: backend/poetry.lock | ||
python-version: '3.13' | ||
|
||
- name: Run pre-commit | ||
uses: pre-commit/[email protected] | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 10 | ||
run_install: false | ||
|
||
- name: Set up Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
cache: npm | ||
cache-dependency-path: frontend/package-lock.json | ||
cache: 'pnpm' | ||
cache-dependency-path: frontend/pnpm-lock.yaml | ||
|
||
- name: Install frontend dependencies | ||
working-directory: frontend | ||
run: npm install | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Run npm format | ||
- name: Run pnpm format | ||
working-directory: frontend | ||
run: npm run format | ||
run: pnpm run format | ||
|
||
- name: Run npm lint check | ||
- name: Run pnpm lint check | ||
working-directory: frontend | ||
run: npm run lint:check | ||
run: pnpm run lint:check | ||
|
||
- name: Check for uncommitted changes | ||
run: | | ||
|
@@ -96,18 +102,24 @@ jobs: | |
with: | ||
languages: ${{ matrix.language }} | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 10 | ||
run_install: false | ||
|
||
- name: Set up Node | ||
if: matrix.language == 'javascript-typescript' | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
cache: npm | ||
cache-dependency-path: frontend/package-lock.json | ||
cache: 'pnpm' | ||
cache-dependency-path: frontend/pnpm-lock.yaml | ||
|
||
- name: Install dependencies for frontend | ||
if: matrix.language == 'javascript-typescript' | ||
working-directory: frontend | ||
run: npm install | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Perform CodeQL analysis | ||
uses: github/codeql-action/analyze@v3 | ||
|
@@ -175,7 +187,7 @@ jobs: | |
|
||
- name: Run frontend unit tests | ||
run: | | ||
docker run --env-file frontend/.env.example ${{ env.DOCKERHUB_USERNAME }}/owasp-nest-test-frontend-unit:latest npm run test:unit | ||
docker run --env-file frontend/.env.example ${{ env.DOCKERHUB_USERNAME }}/owasp-nest-test-frontend-unit:latest pnpm run test:unit | ||
run-frontend-e2e-tests: | ||
name: Run frontend e2e tests | ||
|
@@ -201,7 +213,7 @@ jobs: | |
|
||
- name: Run frontend end-to-end tests | ||
run: | | ||
docker run --env-file frontend/.env.example ${{ env.DOCKERHUB_USERNAME }}/owasp-nest-test-frontend-e2e:latest npm run test:e2e | ||
docker run --env-file frontend/.env.example ${{ env.DOCKERHUB_USERNAME }}/owasp-nest-test-frontend-e2e:latest pnpm run test:e2e | ||
build-docker-staging-images: | ||
name: Build Docker Staging Images | ||
|
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
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
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
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 |
---|---|---|
|
@@ -13,6 +13,7 @@ class Meta: | |
"author", | ||
"comments_count", | ||
"created_at", | ||
"url", | ||
"number", | ||
"state", | ||
"title", | ||
|
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
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
Oops, something went wrong.