-
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.05 KB
/
ci.yml
File metadata and controls
46 lines (38 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
# Run all individual checks in parallel
lint:
uses: ./.github/workflows/lint.yml
version-check:
uses: ./.github/workflows/check-version.yml
if: github.event_name == 'pull_request'
test:
uses: ./.github/workflows/test.yml
# Final status check
ci-success:
runs-on: ubuntu-latest
needs: [lint, test, version-check]
if: always()
steps:
- name: Check all jobs status
run: |
if [[ "${{ needs.lint.result }}" != "success" ]]; then
echo "Lint job failed"
exit 1
fi
if [[ "${{ needs.test.result }}" != "success" ]]; then
echo "Test job failed"
exit 1
fi
if [[ "${{ github.event_name }}" == "pull_request" && "${{ needs.version-check.result }}" != "success" ]]; then
echo "Version check job failed"
exit 1
fi
echo "All CI checks passed!"