pull-request.yml 547 B

1234567891011121314151617181920212223242526
  1. name: Verify Pull Request
  2. on:
  3. pull_request:
  4. branches: [ "main" ]
  5. jobs:
  6. build:
  7. runs-on: ubuntu-latest
  8. strategy:
  9. matrix:
  10. node-version: [16.x]
  11. # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
  12. steps:
  13. - uses: actions/checkout@v3
  14. - name: Use Node.js ${{ matrix.node-version }}
  15. uses: actions/setup-node@v3
  16. with:
  17. node-version: ${{ matrix.node-version }}
  18. cache: 'npm'
  19. - run: npm install
  20. - run: npm run lint
  21. - run: npm run build