Test-cafe Health Check #235
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test-cafe Health Check | |
on: | |
push: | |
branches: [ 'master' ] | |
pull_request: | |
branches: [ 'master' ] | |
schedule: | |
- cron: "0 22 * * *" | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
LT_USERNAME: ${{ secrets.LT_USERNAME }} | |
LT_ACCESS_KEY: ${{ secrets.LT_ACCESS_KEY }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js 14.x | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 14.x | |
- name: npm dependencies | |
run: npm install | |
- name: Install testcafe | |
run: npm install -g testcafe | |
- name: Build Npm package | |
run: npm run build | |
- name: Link Npm | |
run: npm link | |
- name: Run single test | |
run: testcafe "lambdatest:[email protected]:Windows 8" "test/test.js" | |
- name: Run Parallel test | |
run: testcafe "lambdatest:[email protected]:Windows 8","lambdatest:[email protected]:Windows 10" "test/test.js" |