2020-11-05 18:36:54 +00:00
|
|
|
name: Packaging Test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- $default-branch
|
|
|
|
- development
|
|
|
|
- master
|
|
|
|
# Run tests for any PRs
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
env:
|
|
|
|
SOURCE_DIR: ./
|
|
|
|
ARTIFACTS_DIR: debian/build/release/
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
env:
|
|
|
|
DEBIAN_FRONTEND: "noninteractive"
|
|
|
|
- name: Remove github artefacts
|
|
|
|
run: |
|
2020-11-09 11:13:51 +00:00
|
|
|
rm -rf .git*
|
2020-11-05 18:36:54 +00:00
|
|
|
- name: Adjust distibution in changelog file
|
|
|
|
run: |
|
|
|
|
sed -i '0,/restricted/s//stable/' debian/changelog
|
|
|
|
- name: Build Debian package
|
|
|
|
uses: dawidd6/action-debian-package@v1
|
|
|
|
with:
|
|
|
|
artifacts_directory: debian/build/release/
|
2020-11-09 11:13:51 +00:00
|
|
|
- name: Debug
|
|
|
|
run: |
|
|
|
|
ls -la
|