Skip to content

Commit

Permalink
ci: test qase report (#28569)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Mar 30, 2023
1 parent eecca98 commit f5114d4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/ci-test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ on:
required: true
CR_PAT:
required: true
QASE_API_TOKEN:
required: false

env:
MONGO_URL: mongodb://localhost:27017/rocketchat?replicaSet=rs0&directConnection=true
Expand Down Expand Up @@ -223,6 +225,8 @@ jobs:
env:
E2E_COVERAGE: ${{ inputs.release == 'ee' && 'true' || '' }}
IS_EE: ${{ inputs.release == 'ee' && 'true' || '' }}
QASE_API_TOKEN: ${{ secrets.QASE_API_TOKEN }}
QASE_REPORT: 'true'
working-directory: ./apps/meteor
run: yarn test:e2e --shard=${{ matrix.shard }}/${{ inputs.total-shard }}

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ jobs:
secrets:
CR_USER: ${{ secrets.CR_USER }}
CR_PAT: ${{ secrets.CR_PAT }}
QASE_API_TOKEN: ${{ secrets.QASE_API_TOKEN }}

test-api-ee:
name: 🔨 Test API (EE)
Expand Down Expand Up @@ -296,6 +297,7 @@ jobs:
secrets:
CR_USER: ${{ secrets.CR_USER }}
CR_PAT: ${{ secrets.CR_PAT }}
QASE_API_TOKEN: ${{ secrets.QASE_API_TOKEN }}

tests-done:
name: ✅ Tests Done
Expand Down
8 changes: 7 additions & 1 deletion apps/meteor/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,14 @@ export default {
[
'playwright-qase-reporter',
{
apiToken: `${process.env.QASE_API_TOKEN}`,
rootSuiteTitle: 'Rocket.chat automation',
projectCode: 'RC',
// uploadAttachments: true,
runComplete: true,
basePath: 'https://api.qase.io/v1',
logging: true,
uploadAttachments: false,
environmentId: '1',
},
],
],
Expand Down

0 comments on commit f5114d4

Please sign in to comment.