Skip to content

feat(pie-aperture): DSW-1581 sync form pages across apps #13

feat(pie-aperture): DSW-1581 sync form pages across apps

feat(pie-aperture): DSW-1581 sync form pages across apps #13

Workflow file for this run

name: Build - Nuxt App
on:
pull_request:
types: [assigned, opened, synchronize, reopened, "ready_for_review"]
paths:
- '.github/workflows/**'
- 'nuxt-app/**'
- 'webdriver-helpers/**'
- 'wdio.conf.js'
push:
branches:
- main
concurrency:
group: CI-Nuxt-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
build-nuxt-app-windows-node16:
name: Windows - Node 16
uses: ./.github/workflows/build.yml
with:
build-script: 'generate'
deploy: false
node-version: 16
os: 'windows-latest'
package-name: 'nuxt-app'
secrets: inherit
build-nuxt-app-windows-node18:
name: Windows - Node 18
uses: ./.github/workflows/build.yml
with:
build-script: 'generate'
deploy: false
node-version: 18
os: 'windows-latest'
package-name: 'nuxt-app'
secrets: inherit
build-nuxt-app-windows-node20:
name: Windows - Node 20
uses: ./.github/workflows/build.yml
with:
build-script: 'generate'
deploy: false
node-version: 20
os: 'windows-latest'
package-name: 'nuxt-app'
secrets: inherit
build-nuxt-app-ubuntu-node16:
name: Ubuntu - Node 16
uses: ./.github/workflows/build.yml
with:
build-script: 'generate'
deploy: false
node-version: 16
os: 'ubuntu-latest'
package-name: 'nuxt-app'
secrets: inherit
build-nuxt-app-ubuntu-node18:
name: Ubuntu - Node 18
uses: ./.github/workflows/build.yml
with:
build-script: 'generate'
deploy: false
node-version: 18
os: 'ubuntu-latest'
package-name: 'nuxt-app'
secrets: inherit
build-deploy-nuxt-app-ubuntu-node20:
name: Ubuntu - Node 20
uses: ./.github/workflows/build.yml
with:
build-script: 'generate'
deploy: true
node-version: 20
os: 'ubuntu-latest'
amplify-app-id: 'd36dan3bxjue8c'
package-name: 'nuxt-app'
package-dist-directory: './nuxt-app/dist'
bucket-name-preview: 'pie-aperture-preview'
bucket-name-main: 'pie-aperture'
secrets: inherit
browser-tests:
needs: 'build-deploy-nuxt-app-ubuntu-node20'
name: Run WebDriverIO Tests
runs-on: ubuntu-latest
steps:
# Checkout the Repo
- name: Checkout
uses: actions/checkout@v3
# Setup Node
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
- name: Install Dependencies - Root
shell: bash
run: yarn
- name: Install Dependencies - Nuxt App
shell: bash
working-directory: ./nuxt-app
run: yarn
- name: Run Percy Tests
shell: bash
working-directory: ./nuxt-app
run: yarn test:visual
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
NUXT_AMPLIFY_ID: d36dan3bxjue8c
PERCY_TOKEN_PIE_APERTURE_NUXT: ${{ secrets.PERCY_TOKEN_PIE_APERTURE_NUXT }}
PR_NUMBER: ${{ github.event.number }}