Skip to content

Commit f1d8f44

Browse files
committed
Upd. Revert coverage from tests flow.
1 parent 7fee2db commit f1d8f44

File tree

1 file changed

+0
-48
lines changed

1 file changed

+0
-48
lines changed

.github/workflows/tests.yml

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -58,54 +58,6 @@ jobs:
5858
env:
5959
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
6060

61-
- name: Wait for Codecov status
62-
uses: actions/github-script@v7
63-
id: codecov_check
64-
with:
65-
script: |
66-
const owner = context.repo.owner;
67-
const repo = context.repo.repo;
68-
const ref = context.sha;
69-
70-
async function wait(ms) {
71-
return new Promise(resolve => setTimeout(resolve, ms));
72-
}
73-
74-
for (let i = 0; i < 20; i++) {
75-
const { data } = await github.repos.getCombinedStatusForRef({
76-
owner,
77-
repo,
78-
ref,
79-
});
80-
81-
const codecov = data.statuses.find(
82-
s => s.context === "codecov/patch"
83-
);
84-
85-
if (codecov) {
86-
core.setOutput("state", codecov.state);
87-
return;
88-
}
89-
90-
await wait(10000); // ждём 10 сек
91-
}
92-
93-
core.setOutput("state", "not_found");
94-
95-
- name: Matrix notify on bad patch coverage
96-
if: steps.codecov_check.outputs.state == 'failure'
97-
uses: Glomberg/matrix-messenger-action@master
98-
with:
99-
server: ${{ secrets.MATRIX_SERVER }}
100-
to: ${{ secrets.MATRIX_EXTERNSION_ROOM }}
101-
token: ${{ secrets.MATRIX_USER_TOKEN }}
102-
message: |
103-
⚠ Patch coverage below target (70%)!
104-
Repository: ${{ github.repository }}
105-
Commit: ${{ github.sha }}
106-
Actor: ${{ github.actor }}
107-
Please increase test coverage.
108-
10961
- name: Matrix notify on failure
11062
if: failure()
11163
uses: Glomberg/matrix-messenger-action@master

0 commit comments

Comments
 (0)