File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 branches :
66 - main
77 workflow_dispatch :
8+ inputs :
9+ run_tests :
10+ description : Run test suite before deploying
11+ type : boolean
12+ default : true
813 repository_dispatch :
914 types : [on-millennium-sdk-updated]
1015
@@ -46,26 +51,30 @@ jobs:
4651 run : bun run build
4752
4853 - name : Install Playwright browsers
54+ if : ${{ inputs.run_tests != false }}
4955 working-directory : apps/www
5056 run : bunx playwright install --with-deps chromium
5157
5258 - name : Start production server
59+ if : ${{ inputs.run_tests != false }}
5360 working-directory : apps/www
5461 run : bun run start &
5562 env :
5663 BEARER : ${{ secrets.BEARER }}
5764
5865 - name : Wait for server
66+ if : ${{ inputs.run_tests != false }}
5967 run : until curl -sf http://localhost:3000 > /dev/null; do sleep 2; done
6068 timeout-minutes : 2
6169
6270 - name : Run tests
71+ if : ${{ inputs.run_tests != false }}
6372 working-directory : apps/www
6473 run : bun run test
6574
6675 - name : Upload Playwright report
76+ if : ${{ inputs.run_tests != false && always() }}
6777 uses : actions/upload-artifact@v4
68- if : always()
6978 with :
7079 name : playwright-report
7180 path : apps/www/playwright-report/
You can’t perform that action at this time.
0 commit comments