Skip to content

Commit

Permalink
Try only using github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
aguspe committed Jul 23, 2024
1 parent 0b18e77 commit e7f57d6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 49 deletions.
31 changes: 7 additions & 24 deletions .github/workflows/rspec_selenium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,27 @@ name: Rspec Selenium Test on Ubuntu
on: [ pull_request ]

jobs:
ubuntu-job:
name: BrowserStack Test on Ubuntu
build:
name: Integration pipeline
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

steps:
- name: Set up Ruby
uses: ruby/setup-ruby@f20f1eae726df008313d2e0d78c5e602562a1bcf
with:
ruby-version: head

- name: Checkout repository
uses: actions/checkout@v3

- name: Install gems
run: bundle install

- name: Create Raider framework
run: bin/raider new rspec_selenium -p framework:rspec automation:selenium visual:false axe:true
run: bin/raider new rspec_selenium -p framework:rspec automation:selenium

- name: Setup Raider tests
run: cd rspec_selenium && bundle install && raider utility browser_options chrome headless

- name: Run Raider tests
run: rspec rspec_selenium/spec/

- name: BrowserStackLocal Stop
uses: browserstack/github-actions/setup-local@master
with:
local-testing: stop
36 changes: 11 additions & 25 deletions .github/workflows/rspec_watir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,27 @@ name: Rspec Watir Test on Ubuntu
on: [ pull_request ]

jobs:
ubuntu-job:
name: BrowserStack Test on Ubuntu
build:
name: Integration pipeline
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

steps:
- name: Set up Ruby
uses: ruby/setup-ruby@f20f1eae726df008313d2e0d78c5e602562a1bcf
with:
ruby-version: head

- name: Checkout repository
uses: actions/checkout@v3

- 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
run: bin/raider new rspec_watir -p framework:rspec automation:watir

- name: Run Raider tests
run: cd rspec_watir && bundle install && raider utility browser_options chrome headless && rspec spec/
- name: Setup Raider tests
run: cd rspec_watir && bundle install && raider utility browser_options chrome headless

- name: BrowserStackLocal Stop
uses: browserstack/github-actions/setup-local@master
with:
local-testing: stop
- name: Run Raider tests
run: rspec rspec_watir/spec/

0 comments on commit e7f57d6

Please sign in to comment.