diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cfb0b70..0bbc23a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,9 +12,6 @@ on: jobs: frontend: runs-on: ubuntu-latest - defaults: - run: - working-directory: ./frontend steps: - uses: actions/checkout@v4 - name: Use Node.js 20.9.0 @@ -25,18 +22,18 @@ jobs: - name: Install dependencies run: npm install + working-directory: ./frontend - name: Build run: npm run build --if-present + working-directory: ./frontend - name: Test run: npm run test:headless --if-present + working-directory: ./frontend backend: runs-on: ubuntu-latest - defaults: - run: - working-directory: ./backend steps: - uses: actions/checkout@v4 - name: Use Node.js 20.9.0 @@ -47,6 +44,8 @@ jobs: - name: Install dependencies run: npm install + working-directory: ./backend - name: Build run: npm run server:build --if-present + working-directory: ./backend