1818 actions : read
1919 steps :
2020 - name : Ensure lint and unit tests succeeded
21- uses : actions/ github-script@v8
21+ uses : ' ./. github/actions/lint-and-unit-tests-pass '
2222 with :
23- script : |
24- const runId = context.payload.workflow_run.id;
25- const requiredJobs = ['Lint', 'Unit Tests'];
26- const { data } = await github.rest.actions.listJobsForWorkflowRun({
27- owner: context.repo.owner,
28- repo: context.repo.repo,
29- run_id: runId,
30- per_page: 100
31- });
32-
33- const jobs = data.jobs || [];
34- const missing = requiredJobs.filter((jobName) => {
35- const job = jobs.find((entry) => entry.name === jobName);
36- return !job || job.conclusion !== 'success';
37- });
38-
39- if (missing.length > 0) {
40- core.setFailed(`Required CI jobs missing or failed: ${missing.join(', ')}`);
41- }
23+ github-token : ${{ secrets.GITHUB_TOKEN }}
4224
4325 push-turso-migrations :
4426 name : Push Turso Production Migrations
@@ -52,12 +34,12 @@ jobs:
5234
5335 steps :
5436 - name : Checkout repository
55- uses : actions/checkout@v6
37+ uses : actions/checkout@v6.0.1
5638 with :
5739 ref : ${{ github.event.workflow_run.head_sha }}
5840
5941 - name : Setup Node.js
60- uses : actions/setup-node@v6
42+ uses : actions/setup-node@v6.1.0
6143 with :
6244 node-version : ' 22.x'
6345 cache : ' npm'
0 commit comments