mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 11:12:35 +02:00
Updated CI
This commit is contained in:
@@ -4,7 +4,10 @@ on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
# Run on all PRs, but skip for repo owner (runs local tests)
|
||||
|
||||
# Skip CI for repo owner's PRs (they run tests locally)
|
||||
# This check is applied to all jobs below
|
||||
|
||||
env:
|
||||
PYTHON_VERSION: '3.11'
|
||||
@@ -23,6 +26,7 @@ jobs:
|
||||
backend-lint:
|
||||
name: Backend Lint
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name == 'push' || github.actor != github.repository_owner
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -43,6 +47,7 @@ jobs:
|
||||
backend-tests:
|
||||
name: Backend Tests
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name == 'push' || github.actor != github.repository_owner
|
||||
needs: backend-lint
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -79,6 +84,7 @@ jobs:
|
||||
frontend-lint:
|
||||
name: Frontend Lint
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name == 'push' || github.actor != github.repository_owner
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -100,6 +106,7 @@ jobs:
|
||||
frontend-typecheck:
|
||||
name: Frontend Type Check
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name == 'push' || github.actor != github.repository_owner
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -121,6 +128,7 @@ jobs:
|
||||
frontend-tests:
|
||||
name: Frontend Tests
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name == 'push' || github.actor != github.repository_owner
|
||||
needs: [frontend-lint, frontend-typecheck]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -144,6 +152,7 @@ jobs:
|
||||
frontend-build:
|
||||
name: Frontend Build
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name == 'push' || github.actor != github.repository_owner
|
||||
needs: [frontend-tests]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -170,6 +179,7 @@ jobs:
|
||||
docker-test:
|
||||
name: Docker Build
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name == 'push' || github.actor != github.repository_owner
|
||||
timeout-minutes: 20
|
||||
needs: [backend-tests, frontend-build]
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user