DE-557 Added e2e tests for products #47
Workflow file for this run
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
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests on node | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs | |
name: Build & run E2E tests | |
on: | |
push: | |
branches: ['tests'] | |
pull_request: | |
branches: ['tests'] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Lint verification | |
run: pnpm run lint | |
- name: Build process verification | |
run: pnpm run build | |
- name: e2e tests verification | |
env: | |
SDK_KEY: ${{ secrets.CHARGIFY_API_KEY }} | |
PASSWORD: ${{ secrets.PASSWORD }} | |
SUBDOMAIN: ${{ secrets.SUBDOMAIN }} | |
DOMAIN: ${{ secrets.DOMAIN }} | |
run: pnpm run test |