From 4677af22e7e12b51a7b35125db041121f607c355 Mon Sep 17 00:00:00 2001 From: Bernardo Pereira Date: Fri, 20 Sep 2024 23:10:03 -0300 Subject: [PATCH] ci: atualizado workflows --- .github/workflows/ci.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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