Skip to content
Open
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
12 changes: 5 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:
jobs:
lint-and-typecheck:
name: Lint & Type Check
runs-on: ubuntu-latest
runs-on: tenki-standard-small-2c-4g
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -35,7 +35,7 @@ jobs:

unit-tests:
name: Unit Tests & Coverage
runs-on: ubuntu-latest
runs-on: tenki-standard-small-2c-4g
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -57,7 +57,7 @@ jobs:

e2e-tests:
name: E2E Integration Tests
runs-on: ubuntu-latest
runs-on: tenki-standard-small-2c-4g
services:
postgres:
image: postgres:16-alpine
Expand All @@ -72,7 +72,6 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5

redis:
image: redis:7-alpine
ports:
Expand All @@ -82,7 +81,6 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -114,7 +112,7 @@ jobs:
build-and-scan:
name: Build & Security Scan
needs: [lint-and-typecheck, unit-tests, e2e-tests]
runs-on: ubuntu-latest
runs-on: tenki-standard-small-2c-4g
permissions:
contents: read
packages: write
Expand Down Expand Up @@ -180,4 +178,4 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: type=gha,mode=max
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ env:
jobs:
determine-env:
name: Determine Target Environment
runs-on: ubuntu-latest
runs-on: tenki-standard-small-2c-4g
outputs:
target_env: ${{ steps.env-set.outputs.target_env }}
image_tag: ${{ steps.env-set.outputs.image_tag }}
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
deploy:
name: Deploy & Migrate
needs: determine-env
runs-on: ubuntu-latest
runs-on: tenki-standard-small-2c-4g
environment:
name: ${{ needs.determine-env.outputs.target_env }}

Expand Down Expand Up @@ -128,4 +128,4 @@ jobs:
run: |
ENV="${{ needs.determine-env.outputs.target_env }}"
echo "Deployment failed! Rolling back Helm release..."
helm rollback hwala-core -n "hwala-${ENV}"
helm rollback hwala-core -n "hwala-${ENV}"
9 changes: 4 additions & 5 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ on:
schedule:
- cron: '0 0 * * 0' # Every Sunday at midnight UTC
workflow_dispatch:

jobs:
npm-audit:
name: NPM Dependency Audit
runs-on: ubuntu-latest
runs-on: tenki-standard-small-2c-4g
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -23,7 +22,7 @@ jobs:

codeql-sast:
name: CodeQL Static Analysis (SAST)
runs-on: ubuntu-latest
runs-on: tenki-standard-small-2c-4g
permissions:
actions: read
contents: read
Expand All @@ -45,7 +44,7 @@ jobs:

container-cve-scan:
name: Container CVE Vulnerability Scan
runs-on: ubuntu-latest
runs-on: tenki-standard-small-2c-4g
permissions:
security-events: write

Expand All @@ -69,4 +68,4 @@ jobs:
if: always()
with:
sarif_file: 'trivy-security-audit.sarif'
category: 'weekly-trivy-scan'
category: 'weekly-trivy-scan'
Loading