build_and_test.yml 618 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: Build & Test
  2. on:
  3. push:
  4. branches:
  5. - master
  6. pull_request:
  7. branches:
  8. - master
  9. jobs:
  10. build:
  11. runs-on: ubuntu-latest
  12. strategy:
  13. matrix:
  14. node-version: [10.x, 12.x]
  15. steps:
  16. - uses: actions/checkout@v1
  17. - name: Use Node.js ${{ matrix.node-version }}
  18. uses: actions/setup-node@v1
  19. with:
  20. node-version: ${{ matrix.node-version }}
  21. - name: Install & build
  22. run: |
  23. yarn install
  24. yarn bootstrap
  25. yarn build
  26. env:
  27. CI: true
  28. - name: Unit tests
  29. run: yarn test
  30. - name: e2e tests
  31. run: yarn e2e