Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

85 řádky
2.0KB

  1. name: Verify changes
  2. on: [push, pull_request]
  3. jobs:
  4. tests:
  5. runs-on: ubuntu-latest
  6. strategy:
  7. matrix:
  8. node-version: [8.x, 10.x, 12.x]
  9. steps:
  10. - uses: actions/checkout@v1
  11. - name: Setup Node.js
  12. uses: actions/setup-node@v1
  13. with:
  14. node-version: ${{ matrix.node-version }}
  15. - name: npm install and test
  16. run: |
  17. npm install
  18. npm test
  19. tests-on-legacy:
  20. runs-on: ubuntu-latest
  21. strategy:
  22. matrix:
  23. node-version: [0.10.x, 0.12.x, 4.x, 6.x]
  24. steps:
  25. - uses: actions/checkout@v1
  26. - name: Setup Node.js
  27. uses: actions/setup-node@v1
  28. with:
  29. node-version: ${{ matrix.node-version }}
  30. - name: npm install and test
  31. run: |
  32. npm install mocha@3 chai@3
  33. npm run test-unit
  34. common-js-usage:
  35. runs-on: ubuntu-latest
  36. steps:
  37. - uses: actions/checkout@v1
  38. - name: Setup Node.js
  39. uses: actions/setup-node@v1
  40. with:
  41. node-version: 12.x
  42. - name: Package, install and test
  43. run: |
  44. export ARCHIVE_FILENAME=$(npm pack | tail -n 1)
  45. export UNPACK_DESTINATION=$(mktemp -d)
  46. mv $ARCHIVE_FILENAME $UNPACK_DESTINATION
  47. cp test/module-systems/commonjs-test.js $UNPACK_DESTINATION
  48. cd $UNPACK_DESTINATION
  49. npm install $ARCHIVE_FILENAME
  50. node commonjs-test.js
  51. browser-usage:
  52. runs-on: ubuntu-latest
  53. steps:
  54. - uses: actions/checkout@v1
  55. - name: Setup Node.js
  56. uses: actions/setup-node@v1
  57. with:
  58. node-version: 12.x
  59. - name: Install and test
  60. run: |
  61. npm ci
  62. npx mocha test/module-systems/browser-test.js
  63. deno-usage:
  64. runs-on: ubuntu-latest
  65. steps:
  66. - uses: actions/checkout@v1
  67. - uses: denolib/setup-deno@v1
  68. with:
  69. deno-version: 'v0.23.0'
  70. - run: deno --version
  71. - run: deno test --allow-net=deno.land test/module-systems/deno-test.ts