message: Run tests with retry after error and timeouts
  (to compensate flaky tests, I/O locks or other irregularities)
diff: @@ -74,9 +74,17 @@ jobs:
  - name: "Install application"
  run: npm install
  - name: "Execute unit tests"
  - run: npm test
  + uses: nick-invision/retry@v2
  + with:
  + timeout_minutes: 10
  + max_attempts: 3
  + command: npm test
  - name: "Execute integration tests"
  - run: |
  + uses: nick-invision/retry@v2
  + with:
  + timeout_minutes: 5
  + max_attempts: 3
  + command: |
  if [ "$RUNNER_OS" == "Windows" ]; then
  set NODE_ENV=test
  else
  @@ -112,7 +120,11 @@ jobs:
  - name: "Install application"
  run: npm install
  - name: "Execute end-to-end tests"
  - run: |
  + uses: nick-invision/retry@v2
  + with:
  + timeout_minutes: 20
  + max_attempts: 2
  + command: |
  set NODE_ENV=test
  npm run protractor
  e2e-in-subfolder:
  @@ -129,7 +141,11 @@ jobs:
  - name: "Install application"
  run: npm install
  - name: "Execute end-to-end tests with application hosted in subfolder"
  - run: |
  + uses: nick-invision/retry@v2
  + with:
  + timeout_minutes: 20
  + max_attempts: 2
  + command: |
  set NODE_ENV=test
  npm run preprotractor
  npm run e2e -- subfolder
  