nodejs.yml 989 B

1234567891011121314151617181920212223242526272829303132333435
  1. name: Node CI
  2. on: [push, pull_request]
  3. jobs:
  4. test:
  5. strategy:
  6. matrix:
  7. os: [ubuntu-latest, windows-latest, macos-latest]
  8. node-version: ['0.8', '0.10', '0.12', '4.x', '6.x', '8.x', '10.x', '12.x']
  9. exclude:
  10. - os: windows-latest
  11. node-version: '0.8'
  12. runs-on: ${{matrix.os}}
  13. steps:
  14. - uses: actions/checkout@v1
  15. - name: Use Node.js ${{ matrix.node-version }}
  16. uses: actions/setup-node@v1
  17. with:
  18. node-version: ${{ matrix.node-version }}
  19. - name: Disable strict SSL checks
  20. uses: allenevans/set-env@v1.0.0
  21. with:
  22. NPM_CONFIG_STRICT_SSL: 'false'
  23. if: matrix.node-version == '0.8'
  24. - name: Upgrade npm to latest available version
  25. run: |
  26. curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
  27. source $HOME/.nvm/nvm.sh
  28. nvm install-latest-npm
  29. if: matrix.os != 'windows-latest'
  30. - run: npm install
  31. - run: npm test