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

55 lines
1.9 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-11-02 01:30:17 +00:00
path: package/woocommerce
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.
working-directory: package/woocommerce/plugins/woocommerce
2021-04-12 16:32:38 +00:00
run: |
2021-11-02 01:30:17 +00:00
npm install -g pnpm
pnpm install
2021-04-12 16:32:38 +00:00
composer install --no-dev
2021-11-02 01:30:17 +00:00
pnpm run build:assets
pnpm install jest
2021-04-12 16:32:38 +00:00
- name: Run smoke test.
working-directory: package/woocommerce/plugins/woocommerce
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: |
pnpx wc-e2e test:e2e plugins/woocommerce/tests/e2e/specs/smoke-tests/update-woocommerce.js
2021-11-02 01:30:17 +00:00
pnpx wc-e2e test:e2e
pnpx wc-api-tests test api