diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7e4a822..96a2810 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,7 @@ name: Build on: - pull_request: + push: paths-ignore: - 'README.md' branches: @@ -14,7 +14,7 @@ jobs: strategy: matrix: - os: [windows-latest, ubuntu-latest, macos-latest] + os: [ubuntu-latest] node-version: [20.x] steps: diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml new file mode 100644 index 0000000..db8ccee --- /dev/null +++ b/.github/workflows/pr.yaml @@ -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 \ No newline at end of file diff --git a/src/extensions/smart-analysis.extension.js b/src/extensions/smart-analysis.extension.js index f1cc4dc..c6d1b3a 100644 --- a/src/extensions/smart-analysis.extension.js +++ b/src/extensions/smart-analysis.extension.js @@ -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(' | '); diff --git a/test/mocks/teams.mock.js b/test/mocks/teams.mock.js index d684790..7765ef7 100644 --- a/test/mocks/teams.mock.js +++ b/test/mocks/teams.mock.js @@ -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 } ],