-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (55 loc) · 1.7 KB
/
lint-packages.yaml
File metadata and controls
63 lines (55 loc) · 1.7 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
name: Lint package change PRs
on:
pull_request:
paths:
- .github/workflows/lint-packages.yaml
# Run for any CMake or packaging changes
- 'source/cmake/**'
- 'source/cpack/**'
- 'source/init/**'
- 'source/**/CMakeLists.txt'
- 'source/packaging/distros/ubuntu/**'
workflow_dispatch:
jobs:
build-packages-for-ubuntu:
name: Building test package for Ubuntu
uses: ./.github/workflows/call-build-linux-packages.yaml
with:
version: '99.9.9'
ref: ${{ github.ref }}
target-matrix: '["ubuntu/24.04"]'
amd-runner-label: ubuntu-latest
lintian-pr:
runs-on: ubuntu-latest
needs:
- build-packages-for-ubuntu
name: PR - Lintian (Package changes)
steps:
- name: Checkout for config file
uses: actions/checkout@v6
- name: Download package
uses: actions/download-artifact@v7
with:
name: package-ubuntu-24.04
path: downloads/
- name: Debug
run: ls -lRh downloads/
shell: bash
- name: List contents
continue-on-error: true
run: find "downloads/" -name 'fluentdo-agent_*_amd64.deb' -exec dpkg -c {} \;
shell: bash
- name: List control files
continue-on-error: true
run: |
find "downloads/" -name 'fluentdo-agent_*_amd64.deb' -exec dpkg -e {} \;
ls -lRh DEBIAN/
shell: bash
- name: Install Lintian
run: |
sudo apt-get update
sudo apt-get install -y lintian
shell: bash
- name: Run Lintian
run: find "downloads/" -name 'fluentdo-agent_*_amd64.deb' -exec lintian --fail-on=error --cfg $PWD/.lintian -c {} \;
shell: bash