circle.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. version: 2.1
  2. workflows:
  3. version: 2.1
  4. main:
  5. jobs:
  6. - lint
  7. - test-v4
  8. - test-v5
  9. - test-v6
  10. - release:
  11. requires:
  12. - lint
  13. - test-v4
  14. - test-v5
  15. - test-v6
  16. filters:
  17. branches:
  18. only:
  19. - master
  20. jobs:
  21. lint:
  22. docker:
  23. - image: circleci/node:16
  24. steps:
  25. - checkout
  26. - run:
  27. name: Install dependencies
  28. command: npm ci
  29. - run:
  30. name: Lint code
  31. command: npm run lint
  32. test-v4:
  33. docker:
  34. - image: circleci/node:16
  35. steps:
  36. - checkout
  37. - run:
  38. name: Install dependencies
  39. command: npm ci
  40. - run:
  41. name: Install ESLint 4
  42. command: npm install eslint@4
  43. - run:
  44. name: Test ESLint 4
  45. command: npm test
  46. test-v5:
  47. docker:
  48. - image: circleci/node:16
  49. steps:
  50. - checkout
  51. - run:
  52. name: Install dependencies
  53. command: npm ci
  54. - run:
  55. name: Install ESLint 5
  56. command: npm install eslint@5
  57. - run:
  58. name: Test ESLint 5
  59. command: npm test
  60. test-v6:
  61. docker:
  62. - image: circleci/node:16
  63. steps:
  64. - checkout
  65. - run:
  66. name: Install dependencies
  67. command: npm ci
  68. - run:
  69. name: Install ESLint 6
  70. command: npm install eslint@6
  71. - run:
  72. name: Test ESLint 6
  73. command: npm test
  74. release:
  75. docker:
  76. - image: circleci/node:16
  77. steps:
  78. - checkout
  79. - run:
  80. name: Install dependencies
  81. command: npm ci
  82. - run:
  83. name: Run semantic release
  84. command: npm run semantic-release