Skip to content

Commit

Permalink
chore: independent workflow for pr (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
ASaiAnudeep authored Jul 12, 2024
1 parent c0a1bb9 commit c4adb05
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Build

on:
pull_request:
push:
paths-ignore:
- 'README.md'
branches:
Expand All @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
os: [ubuntu-latest]
node-version: [20.x]

steps:
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Pull Request

on:
pull_request:
paths-ignore:
- 'README.md'
branches:
- main

jobs:
build:

runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
node-version: [20.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run test
env:
CI: true
10 changes: 5 additions & 5 deletions src/extensions/smart-analysis.extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ class SmartAnalysisExtension extends BaseExtension {

const smart_analysis = [];
if (execution_metrics.newly_failed) {
smart_analysis.push(`⭕ NF: ${execution_metrics.newly_failed}`);
smart_analysis.push(`⭕ Newly Failed: ${execution_metrics.newly_failed}`);
}
if (execution_metrics.always_failing) {
smart_analysis.push(`🔴 AF: ${execution_metrics.always_failing}`);
smart_analysis.push(`🔴 Always Failing: ${execution_metrics.always_failing}`);
}
if (execution_metrics.recurring_errors) {
smart_analysis.push(`🟠 RE: ${execution_metrics.recurring_errors}`);
smart_analysis.push(`🟠 Recurring Errors: ${execution_metrics.recurring_errors}`);
}
if (execution_metrics.flaky) {
smart_analysis.push(`🟡 FL: ${execution_metrics.flaky}`);
smart_analysis.push(`🟡 Flaky: ${execution_metrics.flaky}`);
}
if (execution_metrics.recovered) {
smart_analysis.push(`🟢 RC: ${execution_metrics.recovered}`);
smart_analysis.push(`🟢 Recovered: ${execution_metrics.recovered}`);
}

this.text = smart_analysis.join(' | ');
Expand Down
2 changes: 1 addition & 1 deletion test/mocks/teams.mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -1611,7 +1611,7 @@ addInteractionHandler('post test-summary with beats to teams with ai failure sum
},
{
"type": "TextBlock",
"text": "⭕ NF: 1 | 🔴 AF: 1 | 🟡 FL: 1 | 🟢 RC: 1",
"text": "⭕ Newly Failed: 1 | 🔴 Always Failing: 1 | 🟡 Flaky: 1 | 🟢 Recovered: 1",
"wrap": true
}
],
Expand Down

0 comments on commit c4adb05

Please sign in to comment.