Cron - run alkalinity test #1275
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
name: Cron - run alkalinity test | |
#on: | |
# workflow_dispatch: | |
# inputs: | |
# name: | |
# description: 'Input1' | |
# required: false | |
on: | |
schedule: | |
- cron: "1 17 * * *" | |
jobs: | |
run-alkalinity-test: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check if secrets exist | |
run: | | |
if [ "${{ secrets.USERNAME }}" == "" ]; then | |
echo "USERNAME secret is not exist or empty" | |
echo "Please verify it in https://github.com/$GITHUB_REPOSITORY/settings/secrets/actions" | |
exit 1 | |
fi | |
if [ "${{ secrets.PASSWORD }}" == "" ]; then | |
echo "PASSWORD secret is not exist or empty" | |
echo "Please verify it in https://github.com/$GITHUB_REPOSITORY/settings/secrets/actions" | |
exit 1 | |
fi | |
- name: Run cypress | |
run: | | |
docker run --rm \ | |
-e CYPRESS_username=${{ secrets.USERNAME }} \ | |
-e CYPRESS_password=${{ secrets.PASSWORD }} \ | |
--workdir /e2e \ | |
-v "$GITHUB_WORKSPACE":"/e2e" \ | |
cypress/included:12.4.1 --spec "cypress/integration/trident-alkalinity.js" --config video=false | |
- uses: gautamkrishnar/keepalive-workflow@v1 |