companion.yml 569 B

1234567891011121314151617181920212223
  1. name: Companion
  2. on: [push, pull_request]
  3. jobs:
  4. test:
  5. name: Unit tests
  6. runs-on: ubuntu-latest
  7. strategy:
  8. matrix:
  9. node-version: [10.20.1, 12.x, 14.x]
  10. steps:
  11. - name: Checkout sources
  12. uses: actions/checkout@v2
  13. - name: Install Node.js
  14. uses: actions/setup-node@v2-beta
  15. with:
  16. node-version: ${{matrix.node-version}}
  17. - name: Install npm 7
  18. run: npm install --global npm@7
  19. - name: Install dependencies
  20. run: npm ci
  21. - name: Run tests
  22. run: npm run test:companion