Skip to content

Commit

Permalink
CI: Add job to run lintian on built packages and sources
Browse files Browse the repository at this point in the history
  • Loading branch information
3v1n0 committed Feb 26, 2024
1 parent bbc515b commit cc6c90f
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build-deb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,44 @@ jobs:
extra-source-build-deps: |
ca-certificates
git
run-lintian:
name: Run lintian
needs: build-deb-package
runs-on: ubuntu-latest

container:
image: ubuntu:devel

steps:
- name: Prepare container
run: |
set -eu
echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/90aptyes
apt update
- name: Download artifacts
uses: actions/download-artifact@v4
with:
run-id: ${{ needs.build-deb-package.outputs.run-id }}

- name: Install dependencies
run: |
apt install lintian
- name: Create test user
run: |
apt install adduser
adduser --disabled-password --gecos "" tester
chown tester:tester . -R
- name: Run lintian on source package
run: |
runuser -u tester -- lintian --pedantic --fail-on error \
./*-debian-source/${{ needs.build-deb-package.outputs.pkg-name }}_${{ needs.build-deb-package.outputs.pkg-version }}_source.changes
- name: Run lintian on binary packages
run: |
runuser -u tester -- lintian --pedantic --fail-on error \
./*-debian-packages/*_${{ needs.build-deb-package.outputs.pkg-version }}_*.deb

0 comments on commit cc6c90f

Please sign in to comment.