-
Notifications
You must be signed in to change notification settings - Fork 187
80 lines (74 loc) · 2.07 KB
/
pull_request.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
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
name: Pull request
on: # yamllint disable-line rule:truthy
branch_protection_rule:
pull_request:
paths-ignore:
- doc/**
- enhancements/**
- "*.md"
jobs:
c:
uses: ./.github/workflows/c.yml
# for each PR run go command line check
golang:
uses: ./.github/workflows/golang.yml
# for each PR run yamllint
yamllint:
uses: ./.github/workflows/yamllint.yml
# for each PR run unit test
unit_test:
uses: ./.github/workflows/unit_test.yml
# for each PR ensure for local developer usage
developer_local:
uses: ./.github/workflows/developer_local.yml
# for each PR run integration test
integration_test:
uses: ./.github/workflows/integration_test.yml
# for each PR run ACPI validation
acpi_validation:
uses: ./.github/workflows/acpi-validation.yml
changes_image:
runs-on: ubuntu-latest
outputs:
src: ${{ steps.changes.outputs.src }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
src:
- './.github/workflows/image.yml'
- './build/Dockerfile'
- './build/Dockerfile.kepler-validator'
image:
needs: changes_image
if: ${{ needs.changes_image.outputs.src == 'true' }}
uses: ./.github/workflows/image.yml
with:
pushImage: false
secrets:
username: ${{ secrets.BOT_NAME }}
password: ${{ secrets.BOT_TOKEN }}
changes_baseimage:
runs-on: ubuntu-latest
outputs:
src: ${{ steps.changes_baseimage.outputs.src }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: changes_baseimage
with:
filters: |
src:
- './.github/workflows/image_base.yml'
- './build/Dockerfile.builder'
base_image:
needs: changes_baseimage
if: ${{ needs.changes_baseimage.outputs.src == 'true' }}
uses: ./.github/workflows/image_base.yml
with:
pushImage: false
secrets:
username: ${{ secrets.BOT_NAME }}
password: ${{ secrets.BOT_TOKEN }}