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

51 lines
1.7 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 }}
2021-08-06 01:39:30 +00:00
SMOKE_TEST_ADMIN_USER_EMAIL: ${{ secrets.SMOKE_TEST_ADMIN_USER_EMAIL }}
2021-04-01 20:17:34 +00:00
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 }}
2021-07-20 21:26:51 +00:00
UPDATE_WC: 1
2021-08-12 22:05:55 +00:00
DEFAULT_TIMEOUT_OVERRIDE: 120000
BASE_URL: ${{ secrets.SMOKE_TEST_URL }}
USER_KEY: ${{ secrets.SMOKE_TEST_ADMIN_USER }}
USER_SECRET: ${{ secrets.SMOKE_TEST_ADMIN_PASSWORD }}
2021-04-12 16:32:38 +00:00
run: |
2021-07-21 16:22:50 +00:00
npx wc-e2e test:e2e ./tests/e2e/specs/smoke-tests/update-woocommerce.js
2021-04-12 16:32:38 +00:00
npx wc-e2e test:e2e
2021-09-09 18:23:23 +00:00
npx wc-api-tests test api