Skip to content

Commit

Permalink
Commented deploy and e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
GPaoloni committed Sep 7, 2022
1 parent 76f57b9 commit e5bb13e
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions .github/workflows/plugin-hrm-form-pre-release-qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,56 +15,56 @@ on:

jobs:

build-and-deploy:
# TODO: remove branch tag (@gian_CHI-1262-p2)
uses: techmatters/flex-plugins/.github/workflows/end_to_end_development.yml@gian_CHI-1262-p2
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
E2E_DEV_ACCOUNT_SID: ${{ secrets.E2E_DEV_ACCOUNT_SID }}
E2E_DEV_AUTH_TOKEN: ${{ secrets.E2E_DEV_AUTH_TOKEN }}
with:
changelog: "Deploying for pre-release ${{ inputs.tag-prefix }}: ${{ inputs.tag-prefix }} (commit ${{ github.sha }})"
send-slack-message: 'false'
# build-and-deploy:
# # TODO: remove branch tag (@gian_CHI-1262-p2)
# uses: techmatters/flex-plugins/.github/workflows/end_to_end_development.yml@gian_CHI-1262-p2
# secrets:
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
# E2E_DEV_ACCOUNT_SID: ${{ secrets.E2E_DEV_ACCOUNT_SID }}
# E2E_DEV_AUTH_TOKEN: ${{ secrets.E2E_DEV_AUTH_TOKEN }}
# with:
# changelog: "Deploying for pre-release ${{ inputs.tag-prefix }}: ${{ inputs.tag-prefix }} (commit ${{ github.sha }})"
# send-slack-message: 'false'

run-e2e-tests:
needs: build-and-deploy
# run-e2e-tests:
# needs: build-and-deploy

runs-on: ubuntu-latest
# runs-on: ubuntu-latest

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '14.x'
# steps:
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# - uses: actions/checkout@v2
# - name: Use Node.js
# uses: actions/setup-node@v1
# with:
# node-version: '14.x'

# Build Playwright
- name: Install e2e-tests dependencies
run: npm install
working-directory: ./e2e-tests
- name: Setup dependencies for playwright/browsers
uses: microsoft/playwright-github-action@v1
- name: Install Playwright CLI
run: npx playwright install
working-directory: ./e2e-tests
# # Build Playwright
# - name: Install e2e-tests dependencies
# run: npm install
# working-directory: ./e2e-tests
# - name: Setup dependencies for playwright/browsers
# uses: microsoft/playwright-github-action@v1
# - name: Install Playwright CLI
# run: npx playwright install
# working-directory: ./e2e-tests

# Run E2E tests against actual E2E Flex instance
- name: Run Playwright tests
run: DEBUG=pw:api PLAYWRIGHT_BASEURL=${{secrets.PLAYWRIGHT_BASEURL_E2E}} PLAYWRIGHT_USER_USERNAME=${{secrets.PLAYWRIGHT_USER_USERNAME}} PLAYWRIGHT_USER_PASSWORD=${{secrets.PLAYWRIGHT_USER_PASSWORD}} TWILIO_ACCOUNT_SID=${{secrets.E2E_DEV_ACCOUNT_SID}} TWILIO_AUTH_TOKEN=${{secrets.E2E_DEV_AUTH_TOKEN}} npx playwright test
working-directory: ./e2e-tests
# # Run E2E tests against actual E2E Flex instance
# - name: Run Playwright tests
# run: DEBUG=pw:api PLAYWRIGHT_BASEURL=${{secrets.PLAYWRIGHT_BASEURL_E2E}} PLAYWRIGHT_USER_USERNAME=${{secrets.PLAYWRIGHT_USER_USERNAME}} PLAYWRIGHT_USER_PASSWORD=${{secrets.PLAYWRIGHT_USER_PASSWORD}} TWILIO_ACCOUNT_SID=${{secrets.E2E_DEV_ACCOUNT_SID}} TWILIO_AUTH_TOKEN=${{secrets.E2E_DEV_AUTH_TOKEN}} npx playwright test
# working-directory: ./e2e-tests

# Upload artifacts
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: test-artifacts
path: e2e-tests/test-results
# # Upload artifacts
# - uses: actions/upload-artifact@v2
# if: ${{ always() }}
# with:
# name: test-artifacts
# path: e2e-tests/test-results

generate-pre-release:
needs: run-e2e-tests
# needs: run-e2e-tests

runs-on: ubuntu-latest

Expand Down

0 comments on commit e5bb13e

Please # to comment.