Skip to content

Commit

Permalink
Add watir flow
Browse files Browse the repository at this point in the history
  • Loading branch information
aguspe committed Jun 29, 2024
1 parent c15ed91 commit f9120ac
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/rspec_watir.yml
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

0 comments on commit f9120ac

Please sign in to comment.