diff --git a/.github/workflows/javaLinting.yaml b/.github/workflows/javaLinting.yaml index 91cf2df5..9941d502 100644 --- a/.github/workflows/javaLinting.yaml +++ b/.github/workflows/javaLinting.yaml @@ -25,4 +25,5 @@ jobs: uses: super-linter/super-linter@v6.3.0 # x-release-please-version env: # To report GitHub Actions status checks - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + working-directory: ./API/src \ No newline at end of file diff --git a/.github/workflows/node.js.yaml b/.github/workflows/node.js.yaml index 4893ddc2..5c093a17 100644 --- a/.github/workflows/node.js.yaml +++ b/.github/workflows/node.js.yaml @@ -23,14 +23,21 @@ jobs: - name: Check out repository code uses: actions/checkout@v4 - - run: cd ./front-end - - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} cache: 'npm' + cache-dependency-path: front-end/package-lock.json + + - name: Install dependencies + run: npm ci + working-directory: ./front-end + + - name: Build + run: npm run build --if-present + working-directory: ./front-end - - run: npm ci - - run: npm run build --if-present - - run: npm test \ No newline at end of file + - name: Test + run: npm test + working-directory: ./front-end \ No newline at end of file