woocommerce/.github/workflows/smoke-test-daily.yml

43 lines
1.2 KiB
YAML
Raw Normal View History

2021-04-01 20:17:34 +00:00
name: Smoke test daily
on:
schedule:
2021-04-06 11:18:45 +00:00
- cron: '25 3 * * *'
2021-04-01 20:17:34 +00:00
jobs:
login-run:
2021-04-12 16:32:38 +00:00
name: Daily smoke test on trunk.
2021-04-01 20:17:34 +00:00
runs-on: ubuntu-18.04
steps:
- name: Create dirs.
run: |
mkdir -p code/woocommerce
mkdir -p package/woocommerce
mkdir -p tmp/woocommerce
mkdir -p node_modules
- name: Checkout code.
uses: actions/checkout@v2
with:
2021-04-12 16:32:38 +00:00
ref: trunk
2021-04-01 20:17:34 +00:00
2021-04-12 16:32:38 +00:00
- name: Install prerequisites.
run: |
npm install
composer install --no-dev
npm run build:assets
npm install jest
- name: Run smoke test.
2021-04-01 20:17:34 +00:00
env:
SMOKE_TEST_URL: ${{ secrets.SMOKE_TEST_URL }}
SMOKE_TEST_ADMIN_USER: ${{ secrets.SMOKE_TEST_ADMIN_USER }}
SMOKE_TEST_ADMIN_PASSWORD: ${{ secrets.SMOKE_TEST_ADMIN_PASSWORD }}
SMOKE_TEST_CUSTOMER_USER: ${{ secrets.SMOKE_TEST_CUSTOMER_USER }}
SMOKE_TEST_CUSTOMER_PASSWORD: ${{ secrets.SMOKE_TEST_CUSTOMER_PASSWORD }}
2021-04-12 16:32:38 +00:00
WC_E2E_SCREENSHOTS: 1
E2E_RETEST: 1
E2E_SLACK_TOKEN: ${{ secrets.SMOKE_TEST_SLACK_TOKEN }}
E2E_SLACK_CHANNEL: ${{ secrets.SMOKE_TEST_SLACK_CHANNEL }}
run: |
npx wc-e2e test:e2e