checks.yml 975 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: Checks
  2. on: [push, pull_request]
  3. jobs:
  4. local:
  5. name: Local build, linting and formatting
  6. runs-on: ${{ matrix.os }}
  7. strategy:
  8. matrix:
  9. os: [ubuntu-latest]
  10. node-version: [16.x]
  11. fail-fast: true
  12. steps:
  13. - uses: actions/checkout@v2
  14. - name: Use Node.js ${{matrix.node-version}}
  15. uses: actions/setup-node@v1
  16. with:
  17. node-version: ${{matrix.node-version}}
  18. - name: Install npm packages
  19. run: npm ci
  20. - name: Run checks
  21. run: npm run checks
  22. docker:
  23. name: Docker build check
  24. runs-on: ${{ matrix.os }}
  25. strategy:
  26. matrix:
  27. os: [ubuntu-latest]
  28. node-version: [16.x]
  29. fail-fast: true
  30. steps:
  31. - uses: actions/checkout@v2
  32. - name: Use Node.js ${{matrix.node-version}}
  33. uses: actions/setup-node@v1
  34. with:
  35. node-version: ${{matrix.node-version}}
  36. - name: Build docker image
  37. run: make build-docker