You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test.yml 779B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: Node CI
  2. on: [push]
  3. jobs:
  4. build:
  5. name: Test Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
  6. strategy:
  7. matrix:
  8. os: [ubuntu-latest, macos-latest, windows-latest]
  9. node-version: [6.x, 8.x, 10.x, 12.x]
  10. runs-on: ${{ matrix.os }}
  11. steps:
  12. - uses: actions/checkout@v1
  13. - name: Use Node.js ${{ matrix.node-version }}
  14. uses: actions/setup-node@v1
  15. with:
  16. node-version: ${{ matrix.node-version }}
  17. - name: Print Node.js Version
  18. run: node --version
  19. - name: Install Dependencies
  20. run: npm install
  21. env:
  22. CI: true
  23. - name: Run "build" step
  24. run: npm run build --if-present
  25. env:
  26. CI: true
  27. - name: Run tests
  28. run: npm test
  29. env:
  30. CI: true