File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -54,14 +54,17 @@ jobs:
5454 bundler-cache : true
5555 working-directory : ${{ env.WORKING_DIRECTORY }}
5656
57- - name : Run mutation tests (Node ${{ matrix.node_index + 1 }} / ${{ matrix.total_nodes }})
57+ - name : Run mutation tests (Node $(($ {{ matrix.node_index }} + 1 )) / ${{ matrix.total_nodes }})
5858 run : make mutate
5959 env :
6060 MUTANT_NODE_INDEX : ${{ matrix.node_index }}
6161 MUTANT_TOTAL_NODES : ${{ matrix.total_nodes }}
6262 working-directory : ${{ env.WORKING_DIRECTORY }}
6363
64- - name : Send Slack Notification on Mutate Status (Node ${{ matrix.node_index + 1 }})
64+ - name : Set Node Number Env Var
65+ run : echo "NODE_NUMBER=$(( ${{ matrix.node_index }} + 1 ))" >> $GITHUB_ENV
66+
67+ - name : Send Slack Notification on Mutate Status (Node ${{ env.NODE_NUMBER }})
6568 uses : 8398a7/action-slack@v3
6669 with :
6770 status : custom
7073 {
7174 attachments: [{
7275 color: '${{ job.status }}' === 'success' ? 'good' : '${{ job.status }}' === 'failure' ? 'danger' : 'warning',
73- text: `Workflow: ${process.env.AS_WORKFLOW}\nJob: ${process.env.AS_JOB} (Node ${{ matrix.node_index + 1 }}/${{ matrix.total_nodes }})\nStatus: ${{ job.status }} in ${process.env.AS_TOOK}\nCommit: ${process.env.AS_COMMIT} on ${process.env.AS_REF} by ${process.env.AS_AUTHOR}`,
76+ text: `Workflow: ${process.env.AS_WORKFLOW}\nJob: ${process.env.AS_JOB} (Node ${{ env.NODE_NUMBER }}/${{ matrix.total_nodes }})\nStatus: ${{ job.status }} in ${process.env.AS_TOOK}\nCommit: ${process.env.AS_COMMIT} on ${process.env.AS_REF} by ${process.env.AS_AUTHOR}`,
7477 }]
7578 }
7679 env :
Original file line number Diff line number Diff line change @@ -79,14 +79,17 @@ jobs:
7979 working-directory : ${{ env.WORKING_DIRECTORY }}
8080 run : bundle exec rails tailwindcss:build
8181
82- - name : Run mutation tests (Node ${{ matrix.node_index + 1 }} / ${{ matrix.total_nodes }})
82+ - name : Run mutation tests (Node $(($ {{ matrix.node_index }} + 1 )) / ${{ matrix.total_nodes }})
8383 run : make mutate
8484 env :
8585 MUTANT_NODE_INDEX : ${{ matrix.node_index }}
8686 MUTANT_TOTAL_NODES : ${{ matrix.total_nodes }}
8787 working-directory : ${{ env.WORKING_DIRECTORY }}
8888
89- - name : Send Slack Notification on Mutate Status (Node ${{ matrix.node_index + 1 }})
89+ - name : Set Node Number Env Var
90+ run : echo "NODE_NUMBER=$(( ${{ matrix.node_index }} + 1 ))" >> $GITHUB_ENV
91+
92+ - name : Send Slack Notification on Mutate Status (Node ${{ env.NODE_NUMBER }})
9093 uses : 8398a7/action-slack@v3
9194 with :
9295 status : custom
9598 {
9699 attachments: [{
97100 color: '${{ job.status }}' === 'success' ? 'good' : '${{ job.status }}' === 'failure' ? 'danger' : 'warning',
98- text: `Workflow: ${process.env.AS_WORKFLOW}\nJob: ${process.env.AS_JOB} (Node ${{ matrix.node_index + 1 }}/${{ matrix.total_nodes }})\nStatus: ${{ job.status }} in ${process.env.AS_TOOK}\nCommit: ${process.env.AS_COMMIT} on ${process.env.AS_REF} by ${process.env.AS_AUTHOR}`,
101+ text: `Workflow: ${process.env.AS_WORKFLOW}\nJob: ${process.env.AS_JOB} (Node ${{ env.NODE_NUMBER }}/${{ matrix.total_nodes }})\nStatus: ${{ job.status }} in ${process.env.AS_TOOK}\nCommit: ${process.env.AS_COMMIT} on ${process.env.AS_REF} by ${process.env.AS_AUTHOR}`,
99102 }]
100103 }
101104 env :
You can’t perform that action at this time.
0 commit comments