Skip to content

Commit

Permalink
test(all): Break playwright tests and docs away from Nx (#4427)
Browse files Browse the repository at this point in the history
* Move docs out of nx build manager

* Fix actions

* Minor Fix

* tests(all): Break playwright tests away from nx

* Fix github actions test run
  • Loading branch information
hartra344 committed Mar 24, 2024
1 parent 619d2f1 commit e2a08a9
Show file tree
Hide file tree
Showing 77 changed files with 15,787 additions and 825 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/Deploy-Documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 20.x

- run: npm ci
- run: npm run build:docs
working-directory: ./docs
- run: npm run build
working-directory: ./docs
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
Expand All @@ -45,9 +46,9 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: 'upload'
skip_app_build: true
app_build_command: 'npm run build:docs'
app_location: 'dist/apps/logic-apps-ux-docs'
output_location: 'dist/apps/logic-apps-ux-docs'
app_build_command: 'cd docs && npm run build'
app_location: 'docs/build'
output_location: 'docs/build'

close_pull_request_job:
if: (github.event_name == 'pull_request' && github.event.action == 'closed') && github.actor != 'csigs' && github.actor != 'azure-logic-apps-automation'
Expand All @@ -58,6 +59,6 @@ jobs:
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
app_location: 'dist/apps/logic-apps-ux-docs'
app_location: 'docs/build'
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
action: 'close'
27 changes: 27 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Playwright Tests
on:
push:
branches: [main, dev/*, hotfix/*]
pull_request:
branches: [main, dev/*, hotfix/*]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
9 changes: 0 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,3 @@ jobs:
- run: npx nx affected --target=lint --parallel
- run: npx nx affected --target=build
- run: npx nx affected --target=test --parallel
- run: npx nx e2e designer-e2e --reporter=html
- run: npx nx e2e data-mapper-e2e --reporter=html

- uses: actions/upload-artifact@v2
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,9 @@ __azurite_db_queue_extent__.json

# Generated Docusaurus files
.docusaurus/
.cache-loader/
.cache-loader/
docs/src/pages/CHANGELOG.MD
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
2 changes: 0 additions & 2 deletions .prettierignore

This file was deleted.

6 changes: 0 additions & 6 deletions .prettierrc

This file was deleted.

23 changes: 0 additions & 23 deletions apps/data-mapper-e2e/.eslintrc.json

This file was deleted.

8 changes: 0 additions & 8 deletions apps/data-mapper-e2e/playwright.config.ts

This file was deleted.

40 changes: 0 additions & 40 deletions apps/data-mapper-e2e/project.json

This file was deleted.

32 changes: 0 additions & 32 deletions apps/data-mapper-e2e/src/general/GeneralTranscript.e2e.spec.ts

This file was deleted.

3 changes: 0 additions & 3 deletions apps/data-mapper-e2e/src/utils.ts

This file was deleted.

18 changes: 0 additions & 18 deletions apps/data-mapper-e2e/tsconfig.e2e.json

This file was deleted.

10 changes: 0 additions & 10 deletions apps/data-mapper-e2e/tsconfig.json

This file was deleted.

23 changes: 0 additions & 23 deletions apps/designer-e2e/.eslintrc.json

This file was deleted.

8 changes: 0 additions & 8 deletions apps/designer-e2e/playwright.config.ts

This file was deleted.

40 changes: 0 additions & 40 deletions apps/designer-e2e/project.json

This file was deleted.

3 changes: 0 additions & 3 deletions apps/designer-e2e/src/utils.ts

This file was deleted.

18 changes: 0 additions & 18 deletions apps/designer-e2e/tsconfig.e2e.json

This file was deleted.

10 changes: 0 additions & 10 deletions apps/designer-e2e/tsconfig.json

This file was deleted.

4 changes: 1 addition & 3 deletions apps/designer-standalone/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@
"buildTarget": "designer-standalone:build:development",
"hmr": false,
"host": "localhost",
"ssl": true,
"sslKey": "ci-key.pem",
"sslCert": "ci-cert.pem"
"ssl": false
},
"development": {
"buildTarget": "designer-standalone:build:development"
Expand Down

0 comments on commit e2a08a9

Please sign in to comment.