run all tests against cloud provider #103
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: 'run all tests against cloud provider' | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
ubuntu-job: | |
name: 'Run tests - browserstack' | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Browserstack env setup' | |
uses: browserstack/github-actions/setup-env@master | |
with: | |
username: ${{ secrets.BROWSERSTACK_USERNAME }} | |
access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} | |
- name: 'Nightwatch tests' | |
uses: actions/checkout@v2 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- run: npm ci | |
- run: npm install nightwatch@latest | |
- name: Run tests | |
run: npm test -- --env browserstack | |