Skip to content

Commit

Permalink
Merge pull request #970 from necyberteam/cypress-github-action-broken…
Browse files Browse the repository at this point in the history
…-links

adding broken-links job
  • Loading branch information
jasperlieber authored Oct 19, 2023
2 parents daa71d9 + 0f55318 commit 4540c44
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
database:
description: 'Recent database dump to use (leave blank to use artifact)'
sites:
description: 'Specify which sites to test or leave the default to run all tests.'
description: 'Specify which sites to test or leave the default to run all tests. Specify "broken-links" for the broken links test.'
default: 'asp'
required: true
prnum:
Expand All @@ -32,6 +32,20 @@ jobs:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
REPO: "${{ github.server_url }}/${{ github.repository }}"

broken-links:
name: Run cypress tests in 'broken-links' directory for accessmatch domain
uses: necyberteam/reusable_actions/.github/workflows/cypress-broken-links.yml@main
if: contains(github.event.inputs.sites, 'broken-links') || github.event_name == 'pull_request'
secrets:
slack_token: ${{ secrets.SLACK_TOKEN }}
site: "accessmatch"
database: ${{ github.event.inputs.database }}
prnum: ${{ github.event.inputs.prnum }}
gh_token: ${{ secrets.GH_TOKEN_REPO }}
LANDO_ENV: ${{ secrets.LANDO_ENV }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
REPO: "${{ github.server_url }}/${{ github.repository }}"

# success:
# name: Actions to run on success
# needs: [asp]
Expand Down

0 comments on commit 4540c44

Please sign in to comment.