BKB Backoffice Test Suite / Price Checks #1617
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: BKB Backoffice Test Suite / Price Checks | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 6 * * *' | |
jobs: | |
test: | |
timeout-minutes: 120 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install dependencies | |
run: npm ci | |
- name: Install Playwright | |
run: npx playwright install --with-deps | |
- name: Run Playwright tests | |
run: npx playwright test | |
env: | |
AUTH_USER_BACK: ${{ secrets.AUTH_USER_BACK }} | |
AUTH_PASS_BACK: ${{ secrets.AUTH_PASS_BACK }} | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: backoffice-prices.csv | |
path: PriceCSV/backoffice-prices.csv | |
retention-days: 30 | |
- name: Report Status | |
if: always() | |
uses: ravsamhq/notify-slack-action@v2 | |
with: | |
status: ${{ job.status }} | |
notify_when: 'failure' | |
notification_title: '{status_message}: {repo} / {workflow}' | |
message_format: '{emoji} *{status_message}*: { repo } (<{run_url}|report>)' | |
footer: "<{repo_url}|{View Repository}> | <{workflow_url}|View Workflow>" | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }} |