pr-any.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. name: PR
  2. on: [pull_request]
  3. jobs:
  4. lint:
  5. name: Linting
  6. runs-on: ubuntu-latest
  7. strategy:
  8. matrix:
  9. node-version: [12.x]
  10. steps:
  11. - uses: actions/checkout@v1
  12. - name: Use Node.js ${{ matrix.node-version }}
  13. uses: actions/setup-node@v1
  14. with:
  15. node-version: ${{ matrix.node-version }}
  16. - name: lint
  17. run: |
  18. yarn install --frozen-lockfile
  19. yarn lint
  20. test:
  21. name: Testing
  22. runs-on: ubuntu-latest
  23. strategy:
  24. matrix:
  25. node-version: [12.x]
  26. steps:
  27. - uses: actions/checkout@v1
  28. - name: Use Node.js ${{ matrix.node-version }}
  29. uses: actions/setup-node@v1
  30. with:
  31. node-version: ${{ matrix.node-version }}
  32. - name: test
  33. run: |
  34. yarn install --frozen-lockfile
  35. yarn test
  36. build_code:
  37. name: Build Code
  38. runs-on: ubuntu-latest
  39. strategy:
  40. matrix:
  41. node-version: [12.x]
  42. steps:
  43. - uses: actions/checkout@v1
  44. - name: Use Node.js ${{ matrix.node-version }}
  45. uses: actions/setup-node@v1
  46. with:
  47. node-version: ${{ matrix.node-version }}
  48. - name: build
  49. run: |
  50. yarn install --frozen-lockfile
  51. yarn build:code
  52. build_i18n:
  53. name: Build i18n
  54. runs-on: ubuntu-latest
  55. strategy:
  56. matrix:
  57. node-version: [12.x]
  58. steps:
  59. - uses: actions/checkout@v1
  60. - name: Use Node.js ${{ matrix.node-version }}
  61. uses: actions/setup-node@v1
  62. with:
  63. node-version: ${{ matrix.node-version }}
  64. - name: build
  65. run: |
  66. yarn install --frozen-lockfile
  67. yarn build:i18n