main.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # This is a basic workflow to help you get started with Actions
  2. name: CI
  3. # Controls when the action will run. Triggers the workflow on push or pull request
  4. # events but only for the master branch
  5. on:
  6. push:
  7. branches: [ master ]
  8. pull_request:
  9. branches: [ master ]
  10. # A workflow run is made up of one or more jobs that can run sequentially or in parallel
  11. jobs:
  12. # This workflow contains a single job called "build"
  13. build:
  14. # The type of runner that the job will run on
  15. runs-on: windows-latest
  16. # Steps represent a sequence of tasks that will be executed as part of the job
  17. steps:
  18. # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
  19. - uses: actions/checkout@v2
  20. - uses: actions/setup-node@v1
  21. with:
  22. node-version: '12.x'
  23. # Runs a single command using the runners shell
  24. - name: Install dependencies
  25. run: yarn --frozen-lockfile
  26. # Runs a set of commands using the runners shell
  27. # As there seems to be issues like "socket hang up" in the github actions environment when testing all browsers altogether, I run the browser tests sequentially in the ci script
  28. - name: Run the test
  29. run: yarn ci