diff --git a/.github/workflows/backend_test.yml b/.github/workflows/backend_test.yml index 6d33851e..7fbcc1f8 100644 --- a/.github/workflows/backend_test.yml +++ b/.github/workflows/backend_test.yml @@ -3,30 +3,23 @@ name: backend-test on: push: paths: - - 'backend/**' + - "backend/**" - compose.yml - dev.yml - - '.github/workflows/backend_test.yml' - + - ".github/workflows/backend_test.yml" pull_request: branches: - main - staging - - develop - jobs: test: runs-on: ubuntu-latest env: - working-directory: - backend + working-directory: backend steps: - name: Checkout uses: actions/checkout@v4 - + - name: Test with Maven run: docker compose -f dev.yml run --rm backend mvn test - - - diff --git a/.github/workflows/frontend_test.yml b/.github/workflows/frontend_test.yml index b57d72a0..330f7bd0 100644 --- a/.github/workflows/frontend_test.yml +++ b/.github/workflows/frontend_test.yml @@ -1,6 +1,14 @@ name: Front-End CI -on: [push, pull_request] +on: + push: + paths: + - "frontend/**" + - ".github/**" + pull_request: + branches: + - main + - staging jobs: build: @@ -15,8 +23,8 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v2 with: - node-version: '20' - cache: 'yarn' + node-version: "20" + cache: "yarn" - name: Enable Corepack run: corepack enable