Skip to content

Commit e052ca9

Browse files
committed
chore: streamline workflow by consolidating test report publishing steps
1 parent 82d2801 commit e052ca9

1 file changed

Lines changed: 1 addition & 38 deletions

File tree

.github/workflows/build-and-test.yaml

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -11,45 +11,7 @@ on:
1111
- cron: '0 2 * * *'
1212

1313
jobs:
14-
build-and-test:
15-
runs-on: ubuntu-latest
16-
steps:
17-
- name: Checkout code
18-
uses: actions/checkout@v4
19-
- name: Install dependencies
20-
run: npm install
21-
- name: Build
22-
run: npm run all:action
23-
- name: Publish Test Report
24-
uses: ./
25-
with:
26-
report-path: './ctrf/*.json'
27-
summary-report: true
28-
github-report: true
29-
failed-report: true
30-
flaky-report: true
31-
insights-report: true
32-
fail-rate-report: true
33-
flaky-rate-report: true
34-
slowest-report: true
35-
previous-results-report: true
36-
use-suite-name: true
37-
upload-artifact: true
38-
env:
39-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40-
if: always()
41-
- name: Publish Test Reports
42-
uses: ./
43-
with:
44-
report-path: './ctrf/*.json'
45-
pull-request-report: true
46-
update-comment: true
47-
always-latest-comment: true
48-
env:
49-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50-
if: always()
5114
previous-reports-test:
52-
needs: build-and-test
5315
runs-on: ubuntu-latest
5416
steps:
5517
- name: Checkout code
@@ -67,6 +29,7 @@ jobs:
6729
fail-rate-report: true
6830
insights-report: true
6931
slowest-report: true
32+
upload-artifact: true
7033
annotate: false
7134
env:
7235
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)