We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de69b5e commit e639b0bCopy full SHA for e639b0b
.github/workflows/ci.yml
@@ -91,3 +91,21 @@ jobs:
91
if: matrix.node-version == '10.x' || matrix.node-version == '12.x'
92
93
- run: npm test
94
+
95
+ check_required:
96
+ needs: [lint, test, test_node]
97
+ runs-on: ubuntu-24.04
98
+ if: always() # Run even if lint-each-os fails
99
+ name: Ensure all checks pass
100
+ steps:
101
+ - run: |
102
+ node -e "
103
+ const needs = ${{ toJSON(needs) }};
104
105
+ if (Object.values(needs).some(result => result !== 'success')) {
106
+ console.error('Required checks failed. You need to fix the problem before merging.');
107
+ process.exit(1);
108
+ } else {
109
+ console.log('All checks passed.');
110
+ }
111
+ "
0 commit comments