File tree Expand file tree Collapse file tree 3 files changed +9
-21
lines changed Expand file tree Collapse file tree 3 files changed +9
-21
lines changed Original file line number Diff line number Diff line change 11name : Release
22
33on :
4- push :
5- branches :
6- - ' main'
4+ workflow_run :
5+ workflows : [ "Test" ]
6+ branches : [ "main"]
7+ types :
8+ - completed
79
810jobs :
911 main :
12+ if : ${{ github.event.workflow_run.conclusion == 'success' }}
1013 runs-on : ubuntu-latest
1114 steps :
1215 - uses : actions/checkout@v3
4750 - name : Build all packages
4851 run : pnpm build || pnpm build
4952
50- - name : Test
51- run : pnpm test
52-
53- - name : Build for cypress
54- run : pnpm build:e2e
55-
56- - name : Cypress
57- run : pnpm --prefix=e2e run start
58-
59- - name : Cypress cleanup
60- if : always()
61- run : pnpm --prefix=e2e run services:stop
62-
6353 - name : Recreate release with push
6454 run : |
6555 git stash
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ name: Test
22
33on :
44 pull_request :
5+ push :
6+ branches : [ main ]
57
68jobs :
79 test :
Original file line number Diff line number Diff line change 44 "private" : true ,
55 "description" : " e2e tests for tolgee server & webapp" ,
66 "scripts" : {
7- "start" : " npm run services:start && npm run download-extension && npm run services:wait-for-start && npm run cy:run" ,
87 "cy:run" : " cypress run" ,
98 "cy:open" : " cypress open --browser chrome" ,
109 "cy:folders-json" : " node scripts/listTests.js" ,
11- "download-extension" : " sh scripts/downloadTolgeeExtension.sh" ,
12- "services:start" : " sh scripts/startServices.sh" ,
13- "services:wait-for-start" : " node scripts/waitForServices.js" ,
14- "services:stop" : " docker compose stop; docker compose rm -f -v"
10+ "download-extension" : " sh scripts/downloadTolgeeExtension.sh"
1511 },
1612 "author" : " Jan Cizmar" ,
1713 "license" : " BSD" ,
You can’t perform that action at this time.
0 commit comments