Repository navigation
100 lines (86 loc) · 2.83 KB
/
Copy pathpull_request.yaml
File metadata and controls
100 lines (86 loc) · 2.83 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: pull_request
on: [pull_request, workflow_dispatch]
env:
TURBO_SCM_BASE: origin/${{ github.base_ref }}
jobs:
checks:
name: ${{ matrix.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- task: lint
name: Lint
- task: format
name: Format
- task: type-check
name: Type-check
- task: lint:openapi
name: Specification lint
- task: generate:check
name: Specification drift
- task: check-pack
name: Packaging and type resolution
- task: //#knip
name: Unused code report
steps:
- name: Check out repository
uses: actions/checkout@v6
with:
fetch-depth: 0
filter: 'blob:none'
- name: Init nodejs
uses: ./.github/actions/init-pnpm
- name: Run ${{ matrix.name }}
run: pnpm exec turbo run ${{ matrix.task }} --affected
tests:
name: Run Tests
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v6
with:
fetch-depth: 0
filter: 'blob:none'
- name: Init nodejs
uses: ./.github/actions/init-pnpm
- name: Run unit and integration tests
run: pnpm exec turbo run test --affected
- name: Report Coverage
# Only the manager configures coverage reporting today; skip when it didn't run.
if: always() && hashFiles('apps/jobnik-manager/coverage/coverage-summary.json') != ''
uses: davelosert/vitest-coverage-report-action@v2
with:
working-directory: apps/jobnik-manager
e2e:
name: Run E2E Suite
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v6
with:
fetch-depth: 0
filter: 'blob:none'
- name: Init nodejs
uses: ./.github/actions/init-pnpm
- name: Run e2e suite
run: pnpm exec turbo run e2e --affected
helm-lint:
name: Run Helm lint Check
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v6
with:
fetch-depth: 0
# Known upstream issue: helm-lint-v1's own `changed` output is wired to a step
# id that doesn't exist (`list-changed` vs the step's actual `list_changed`),
# so its if-gated ct-lint/kind/ct-install steps never run. This job currently
# verifies only that the chart's dependencies resolve, not that it lints clean.
# Carried over as-is from the manager's own former workflow; worth reporting
# upstream to MapColonies/shared-workflows separately.
- name: Helm Lint Checks
uses: MapColonies/shared-workflows/actions/helm-lint@helm-lint-v1
with:
chartDirs: apps/jobnik-manager,helm