Skip to content

Commit

Permalink
SBVT-2444: Adding Accessiblity Check (#241)
Browse files Browse the repository at this point in the history
* SBVT-2444: Updating deps and fixing the GH runner

* SBVT-2444: Upgrading the runner

* SBVT-2444: Upgrading the runner

* SBVT-2444: Adding tests to the axe check

* SBVT-2444: Adding GHA tests

---------

Co-authored-by: trevor.nelms <trevor.nelms@smartbear.com>
  • Loading branch information
tnelms1 and trevor.nelms authored May 20, 2024
1 parent 7e352da commit 27e99ad
Show file tree
Hide file tree
Showing 10 changed files with 292 additions and 182 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/linux_quick-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on: [push]
jobs:
cypress-run:
runs-on: self-hosted
strategy:
fail-fast: true

steps:
- name: Checkout
Expand All @@ -25,7 +23,7 @@ jobs:
working-directory: ./test

- name: Cypress run
uses: cypress-io/github-action@v5
uses: cypress-io/github-action@v6
with:
quiet: true
working-directory: ./test
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/print_report-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ name: print-report-check
on: [pull_request]
jobs:
cypress-run:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sonar-qube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
build:
name: Build
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/typescript-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: typescript-check
on: [pull_request]
jobs:
cypress-run:
runs-on: ubuntu-latest
runs-on: self-hosted
# Runs tests in parallel with matrix strategy https://docs.cypress.io/guides/guides/parallelization
# https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs
# Also see warning here https://github.com/cypress-io/github-action#parallel
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/violations-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: violations-check
#on: [push]
on: [pull_request]
jobs:
cypress-run:
runs-on: self-hosted

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Extract Branch Name and Set Test Run Name
id: set-test-run-name
run: |
BRANCH_NAME=$(echo "${{ github.ref }}" | awk -F'/' '{print $3}')
echo "::set-output name=TEST_RUN_NAME::${{ github.workflow }}—$BRANCH_NAME"
- name: Install root dependencies
run: npm install

- name: Install test dependencies
run: npm install
working-directory: ./test

- name: Cypress run
uses: cypress-io/github-action@v6
with:
quiet: true
working-directory: ./test
spec: cypress/e2e/test-spec/test_axe*

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PROJECT_TOKEN: ${{ secrets.DEV_EXAMPLE_7 }}
TEST_RUN_NAME: ${{ steps.set-test-run-name.outputs.TEST_RUN_NAME }}
DEBUG: TRUE


Loading

0 comments on commit 27e99ad

Please sign in to comment.