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
22 changes: 22 additions & 0 deletions .github/workflows/pr-backend-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: PR Backend check

on:
pull_request:
workflow_dispatch:

jobs:
syntax-check:
name: Backend syntax check
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.13"

- name: Compile backend sources
run: python -m compileall phishing-email-analyzer/backend
50 changes: 25 additions & 25 deletions .github/workflows/pr-frontend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,31 @@ jobs:
- name: Build
run: npm run build

lint-format:
name: Lint & format
runs-on: ubuntu-latest
needs: build
defaults:
run:
working-directory: phishing-email-analyzer/frontend

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: phishing-email-analyzer/frontend/package-lock.json

- name: Install dependencies
run: npm ci

- name: Lint & format
run: npm run lint

check-translations:
name: Check translations
runs-on: ubuntu-latest
Expand Down Expand Up @@ -100,31 +125,6 @@ jobs:
console.log('No duplicate translation keys found in XLF files.');
NODE

lint-format:
name: Lint & format
runs-on: ubuntu-latest
needs: build
defaults:
run:
working-directory: phishing-email-analyzer/frontend

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: phishing-email-analyzer/frontend/package-lock.json

- name: Install dependencies
run: npm ci

- name: Lint & format
run: npm run lint

unit-tests:
name: Unit tests
runs-on: ubuntu-latest
Expand Down
Loading
Loading