name: "Check Backend Pull Request" on: pull_request: types: [opened, synchronize] paths: - "backend/**" - "!backend/README.md" - "!backend/.*" - "backend/.eslintrc.js" jobs: check-be-pr: name: Check runs-on: ubuntu-latest steps: - name: โ˜๏ธ Checkout source uses: actions/checkout@v3 - name: ๐Ÿ”ง Setup Node 16 uses: actions/setup-node@v3 with: node-version: "16" cache: "npm" cache-dependency-path: backend/package-lock.json - name: ๐Ÿ“ฆ Install dependencies run: npm ci --only-production working-directory: backend - name: ๐Ÿงช Run tests run: npm run test:ci working-directory: backend - name: ๐Ÿ“ Upload test results uses: actions/upload-artifact@v3 if: always() with: name: be-test-results path: | ./backend/reports ./backend/coverage - name: ๐Ÿ—๏ธ Run build run: npm run build working-directory: backend