E2E Tests on Atomic - All #227
This file contains hidden or 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: "E2E Tests on Atomic - All" | |
| # This action will run when it is triggered manually | |
| on: | |
| workflow_dispatch: | |
| env: | |
| WC_E2E_SCREENSHOTS: 1 | |
| E2E_SLACK_CHANNEL_ID: ${{ secrets.E2E_SLACK_CHANNEL_ID }} | |
| E2E_SLACK_TOKEN: ${{ secrets.E2E_SLACK_TOKEN }} | |
| E2E_WP_VERSION: 'latest' | |
| E2E_WC_VERSION: 'latest' | |
| E2E_RESULT_FILEPATH: 'tests/e2e/results.json' | |
| NODE_ENV: 'atomic' | |
| E2E_ADMIN_USER_PASSWORD: ${{ secrets.E2E_ADMIN_USER_PASSWORD }} | |
| E2E_CUSTOMER_USER_PASSWORD: ${{ secrets.E2E_CUSTOMER_USER_PASSWORD }} | |
| E2E_SUBSCRIPTIONS_CUSTOMER_USER_PASSWORD: ${{ secrets.E2E_SUBSCRIPTIONS_CUSTOMER_USER_PASSWORD }} | |
| E2E_EDITOR_USER_PASSWORD: ${{ secrets.E2E_EDITOR_USER_PASSWORD }} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| # Run tests against WP stable & WC latest. Only one combination at a time. | |
| woopayments-atomic-tests: | |
| name: "WP - latest | WC - latest | ${{ matrix.test_groups }} - ${{ matrix.test_branches }}" | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| max-parallel: 1 | |
| matrix: | |
| test_groups: [ 'wcpay' ] | |
| test_branches: [ 'shopper' ] | |
| env: | |
| E2E_GROUP: ${{ matrix.test_groups }} | |
| E2E_BRANCH: ${{ matrix.test_branches }} | |
| steps: | |
| - name: "Checkout repository" | |
| uses: actions/checkout@v4 | |
| - name: "Run the tests" | |
| uses: ./.github/actions/e2e/atomic-prepare-and-run |