-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: BrowserStack Test | ||
on: [ pull_request ] | ||
|
||
jobs: | ||
ubuntu-job: | ||
name: BrowserStack Test on Ubuntu | ||
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 }} | ||
build-name: BUILD_INFO | ||
project-name: REPO_NAME | ||
- name: BrowserStackLocal Setup | ||
uses: browserstack/github-actions/setup-local@master | ||
with: | ||
local-testing: start | ||
|
||
|
||
- name: Checkout the repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@f20f1eae726df008313d2e0d78c5e602562a1bcf | ||
with: | ||
ruby-version: head | ||
|
||
- name: Install gems | ||
run: bundle install | ||
|
||
- name: Create Raider framework | ||
run: bin/raider new rspec_watir -p framework:rspec automation:watir visual:false axe:true | ||
|
||
- name: Run Raider tests | ||
run: cd rspec_selenium && bundle install && raider utility browser_options chrome headless && rspec spec/ | ||
|
||
- name: BrowserStackLocal Stop | ||
uses: browserstack/github-actions/setup-local@master | ||
with: | ||
local-testing: stop |