main.yml 839 B

1234567891011121314151617181920212223242526272829303132333435
  1. name: CI
  2. on:
  3. - push
  4. - pull_request
  5. jobs:
  6. test:
  7. name: Node.js ${{ matrix.node-version }} on ${{ matrix.os }} with stylelint ${{ matrix.stylelint-version }}
  8. runs-on: ${{ matrix.os }}
  9. strategy:
  10. fail-fast: false
  11. matrix:
  12. node-version:
  13. - 18
  14. - 16
  15. - 14
  16. - 12
  17. os:
  18. - ubuntu-latest
  19. - macos-latest
  20. - windows-latest
  21. stylelint-version:
  22. - 14
  23. - 13
  24. - 12
  25. - 11
  26. steps:
  27. - uses: actions/checkout@v2
  28. - uses: actions/setup-node@v2
  29. with:
  30. node-version: ${{ matrix.node-version }}
  31. - run: npm install
  32. - env:
  33. STYLELINT_VERSION: ${{ matrix.stylelint-version}}
  34. run: npm install --no-save "stylelint@${STYLELINT_VERSION}"
  35. - run: npm test