Skip to content

Commit

Permalink
chore(repo): add final test
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Apr 5, 2023
1 parent dd37212 commit 5b46f69
Showing 1 changed file with 49 additions and 17 deletions.
66 changes: 49 additions & 17 deletions .github/workflows/e2e-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
- e2e-esbuild
# - e2e-expo
# - e2e-jest
# - e2e-js
- e2e-js
# - e2e-lerna-smoke-tests
- e2e-linter
# - e2e-make-angular-cli-faster
Expand All @@ -121,7 +121,7 @@ jobs:
# - e2e-nx-misc
# - e2e-nx-plugin
# - e2e-nx-run
# - e2e-react
- e2e-react
# - e2e-react-native
# - e2e-web
# - e2e-rollup
Expand Down Expand Up @@ -161,8 +161,8 @@ jobs:
# codeowners: 'S04TNCNJG5N'
# - project: e2e-jest
# codeowners: 'S04T16BTJJY'
# - project: e2e-js
# codeowners: 'S04SJ6HHP0X'
- project: e2e-js
codeowners: 'S04SJ6HHP0X'
# - project: e2e-lerna-smoke-tests
# codeowners: 'S04TNCVEETS'
- project: e2e-linter
Expand All @@ -181,8 +181,8 @@ jobs:
# codeowners: 'S04SYHYKGNP'
# - project: e2e-nx-run
# codeowners: 'S04SYHYKGNP'
# - project: e2e-react
# codeowners: 'S04TNCNJG5N'
- project: e2e-react
codeowners: 'S04TNCNJG5N'
# - project: e2e-react-native
# codeowners: 'S04TNCNJG5N'
# - project: e2e-web
Expand Down Expand Up @@ -228,8 +228,8 @@ jobs:
# project: e2e-expo
# - node_version: 16
# project: e2e-jest
# - node_version: 16
# project: e2e-js
- node_version: 16
project: e2e-js
- node_version: 16
project: e2e-linter
# - node_version: 16
Expand All @@ -246,8 +246,8 @@ jobs:
# project: e2e-nx-plugin
# - node_version: 16
# project: e2e-lerna-smoke-tests
# - node_version: 16
# project: e2e-react
- node_version: 16
project: e2e-react
# - node_version: 16
# project: e2e-react-native
# - node_version: 16
Expand Down Expand Up @@ -280,8 +280,8 @@ jobs:
# project: e2e-expo
# - node_version: 19
# project: e2e-jest
# - node_version: 19
# project: e2e-js
- node_version: 19
project: e2e-js
- node_version: 19
project: e2e-linter
# - node_version: 19
Expand All @@ -298,8 +298,8 @@ jobs:
# project: e2e-nx-plugin
# - node_version: 19
# project: e2e-lerna-smoke-tests
# - node_version: 19
# project: e2e-react
- node_version: 19
project: e2e-react
# - node_version: 19
# project: e2e-react-native
# - node_version: 19
Expand Down Expand Up @@ -464,6 +464,8 @@ jobs:
needs: e2e
outputs:
message: ${{ steps.process-json.outputs.SLACK_MESSAGE }}
proj-duration: ${{ steps.process-json.outputs.SLACK_PROJ_DURATION }}
pm-duration: ${{ steps.process-json.outputs.SLACK_PM_DURATION }}
codeowners: ${{ steps.process-json.outputs.CODEOWNERS }}
steps:
- name: Load outputs
Expand Down Expand Up @@ -592,7 +594,6 @@ jobs:
});
resultPkg += `\`\`\``;
core.setOutput('SLACK_PROJ_DURATION', trimSpace(resultPkg));
console.log(trimSpace(resultPkg));
let resultPm = `
\`\`\`
Expand All @@ -602,8 +603,7 @@ jobs:
resultPm += `\n| ${pm.padEnd(4)} | ${humanizeDuration(pmReport[pm]).padEnd(11)} |`
});
resultPm += `\`\`\``;
core.setOutput('SLACK_PM_DURATION', trimSpace(result));
console.log(trimSpace(result));
core.setOutput('SLACK_PM_DURATION', trimSpace(resultPm));
report-failure:
if: ${{ failure() && github.repository_owner == 'nrwl' && github.event_name != 'workflow_dispatch' }}
Expand Down Expand Up @@ -637,3 +637,35 @@ jobs:
footer: '<{run_url}|View Run> / Last commit <{commit_url}|{commit_sha}>'
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}

report-pm-time:
# if: ${{ always() && github.repository_owner == 'nrwl' && github.event_name != 'workflow_dispatch' }}
if: ${{ always() }}
needs: process-result
runs-on: ubuntu-latest
name: Report duration per package manager
steps:
- name: Send notification
uses: ravsamhq/notify-slack-action@v2
with:
status: 'skipped'
message_format: 'THIS IS TEST ${{ needs.process-result.outputs.pm-duration }}'
notification_title: 'Total duration per package manager (ubuntu only)'
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}

report-proj-time:
# if: ${{ always() && github.repository_owner == 'nrwl' && github.event_name != 'workflow_dispatch' }}
if: ${{ always() }}
needs: process-result
runs-on: ubuntu-latest
name: Report duration per package manager
steps:
- name: Send notification
uses: ravsamhq/notify-slack-action@v2
with:
status: 'skipped'
message_format: 'THIS IS TEST ${{ needs.process-result.outputs.proj-duration }}'
notification_title: 'Project run duration stats (ubuntu only)'
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}

0 comments on commit 5b46f69

Please sign in to comment.