build.yml 433 B

123456789101112131415161718192021222324
  1. name: Build, Test, and Docker Push
  2. on:
  3. pull_request:
  4. branches: [ main ]
  5. jobs:
  6. build:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - name: Checkout code
  10. uses: actions/checkout@v3
  11. - name: Set up Node.js
  12. uses: actions/setup-node@v3
  13. with:
  14. node-version: '20.9.0'
  15. - name: Install dependencies
  16. run: npm install
  17. - name: Build the application
  18. run: npm run build