[ALS-1906] POI error #432
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
name: E2E tests | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
e2e-tests: | |
name: E2E tests | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.17.0 | |
- name: Create .env file | |
run: | | |
echo "VITE_AWS_API_KEY_REGIONS=${{ secrets.VITE_AWS_API_KEY_REGIONS }}" >> .env | |
echo "VITE_AWS_API_KEYS=${{ secrets.VITE_AWS_API_KEYS }}" >> .env | |
echo "VITE_AWS_COGNITO_IDENTITY_POOL_IDS=${{ secrets.VITE_AWS_COGNITO_IDENTITY_POOL_IDS }}" >> .env | |
echo "VITE_AWS_WEB_SOCKET_URLS=${{ secrets.VITE_AWS_WEB_SOCKET_URLS }}" >> .env | |
echo "VITE_PINPOINT_IDENTITY_POOL_ID=${{ secrets.VITE_PINPOINT_IDENTITY_POOL_ID }}" >> .env | |
echo "VITE_PINPOINT_APPLICATION_ID=${{ secrets.VITE_PINPOINT_APPLICATION_ID }}" >> .env | |
echo "VITE_AWS_CF_TEMPLATE=${{ secrets.VITE_AWS_CF_TEMPLATE }}" >> .env | |
echo "VITE_APPLE_APP_STORE_LINK=${{ secrets.VITE_APPLE_APP_STORE_LINK }}" >> .env | |
echo "VITE_GOOGLE_PLAY_STORE_LINK=${{ secrets.VITE_GOOGLE_PLAY_STORE_LINK }}" >> .env | |
echo "VITE_APP_VERSION=${{ secrets.VITE_APP_VERSION }}" >> .env | |
echo "VITE_MIGRATE_FROM_GOOGLE_MAPS_PAGE=${{ secrets.VITE_MIGRATE_FROM_GOOGLE_MAPS_PAGE }}" >> .env | |
echo "VITE_MIGRATE_A_WEB_APP_PAGE=${{ secrets.VITE_MIGRATE_A_WEB_APP_PAGE }}" >> .env | |
echo "VITE_MIGRATE_AN_ANDROID_APP_PAGE=${{ secrets.VITE_MIGRATE_AN_ANDROID_APP_PAGE }}" >> .env | |
echo "VITE_MIGRATE_AN_IOS_APP_PAGE=${{ secrets.VITE_MIGRATE_AN_IOS_APP_PAGE }}" >> .env | |
echo "VITE_MIGRATE_A_WEB_SERVICE_PAGE=${{ secrets.VITE_MIGRATE_A_WEB_SERVICE_PAGE }}" >> .env | |
echo "VITE_PRICING_PAGE=${{ secrets.VITE_PRICING_PAGE }}" >> .env | |
echo "VITE_SHOW_NEW_NAVIGATION=${{ secrets.VITE_SHOW_NEW_NAVIGATION }}" >> .env | |
- name: Install dependencies | |
run: npm install | |
- name: Run local server | |
run: | | |
npm run dev & | |
echo "Server started" | |
sleep 10 | |
- name: Run cypress tests | |
env: | |
CYPRESS_WEB_DOMAIN: ${{ secrets.WEB_DOMAIN }} | |
CYPRESS_IDENTITY_POOL_ID: ${{ secrets.IDENTITY_POOL_ID }} | |
CYPRESS_USER_DOMAIN: ${{ secrets.USER_DOMAIN }} | |
CYPRESS_USER_POOL_CLIENT_ID: ${{ secrets.USER_POOL_CLIENT_ID }} | |
CYPRESS_USER_POOL_ID: ${{ secrets.USER_POOL_ID }} | |
CYPRESS_WEB_SOCKET_URL: ${{ secrets.WEB_SOCKET_URL }} | |
CYPRESS_COGNITO_EMAIL: ${{ secrets.COGNITO_EMAIL }} | |
CYPRESS_COGNITO_PASSWORD: ${{ secrets.COGNITO_PASSWORD }} | |
PINPOINT_IDENTITY_POOL_ID: ${{ secrets.VITE_PINPOINT_IDENTITY_POOL_ID }} | |
PINPOINT_APPLICATION_ID: ${{ secrets.VITE_PINPOINT_APPLICATION_ID }} | |
run: npm run cypress | |
- name: Upload cypress report | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cypress-reports | |
path: cypress/reports | |
- name: Upload cypress screenshots | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cypress-screenshots | |
path: cypress/screenshots |