-
Notifications
You must be signed in to change notification settings - Fork 77
53 lines (45 loc) · 1.27 KB
/
test.yml
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
name: Test
on:
push:
branches:
- 'main'
paths-ignore:
- 'docs/**'
pull_request:
types: [opened, synchronize, reopened, ready_for_review, converted_to_draft, unlabeled]
branches:
- '**'
paths-ignore:
- 'docs/**'
pull_request_target: # for forked repos changes labeled 'safe-to-test' or 'cloud-tests'
types: [labeled]
paths-ignore:
- 'docs/**'
merge_group:
workflow_dispatch:
concurrency:
group: test-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
jobs:
lint:
uses: ./.github/workflows/lint.yaml
validate-manifests:
uses: ./.github/workflows/validate-manifests.yml
unit-tests:
uses: ./.github/workflows/test-unit.yml
check-licenses:
uses: ./.github/workflows/check-licenses.yml
cloud-tests-filter:
uses: ./.github/workflows/cloud-tests-filter.yml
cloud-tests:
needs:
- lint
- unit-tests
- validate-manifests
- check-licenses
- cloud-tests-filter
if: (github.event_name == 'merge_group' || needs.cloud-tests-filter.outputs.run-cloud-tests == 'true')
uses: ./.github/workflows/cloud-tests.yml
secrets: inherit
with:
forked: ${{ github.event.repository.full_name != github.event.pull_request.head.repo.full_name }}