2020-03-25 22:13:26 +00:00
|
|
|
name: Test Action
|
|
|
|
|
2020-07-25 10:37:11 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2020-11-08 20:12:55 +00:00
|
|
|
- master
|
|
|
|
pull_request:
|
2020-03-25 22:13:26 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
2020-03-26 15:35:44 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
include:
|
2020-07-25 10:32:39 +00:00
|
|
|
- package: at
|
2021-07-09 22:21:13 +00:00
|
|
|
arch: arm
|
2020-07-25 10:32:39 +00:00
|
|
|
repo: https://salsa.debian.org/debian/at.git
|
2023-03-06 08:42:56 +00:00
|
|
|
ref: debian/3.2.2-1
|
2022-10-27 11:00:43 +00:00
|
|
|
lintian_opts: "-v"
|
2022-10-28 09:22:24 +00:00
|
|
|
lintian_run: false
|
2020-03-26 15:35:44 +00:00
|
|
|
- package: lolcat
|
2021-07-09 22:11:23 +00:00
|
|
|
arch: arm64
|
2020-03-26 15:35:44 +00:00
|
|
|
repo: https://salsa.debian.org/ruby-team/lolcat.git
|
|
|
|
ref: debian/100.0.1-2
|
2022-10-27 11:00:43 +00:00
|
|
|
lintian_opts: "-v"
|
2020-11-08 20:19:25 +00:00
|
|
|
- package: micro
|
2021-07-09 22:11:23 +00:00
|
|
|
arch: amd64
|
2020-11-08 20:19:25 +00:00
|
|
|
repo: https://salsa.debian.org/go-team/packages/micro.git
|
|
|
|
ref: debian/2.0.6-2_bpo10+1
|
2022-10-27 11:00:43 +00:00
|
|
|
lintian_opts: "-v"
|
2022-10-28 09:22:24 +00:00
|
|
|
lintian_run: true
|
2021-04-27 07:57:08 +00:00
|
|
|
- package: dropbear
|
2021-07-09 22:27:18 +00:00
|
|
|
arch: amd64
|
2021-04-27 07:57:08 +00:00
|
|
|
repo: https://salsa.debian.org/debian/dropbear.git
|
2024-01-04 19:37:24 +00:00
|
|
|
ref: debian/2022.83-1_bpo11+1
|
2022-10-27 11:00:43 +00:00
|
|
|
lintian_opts: "-v"
|
2020-03-26 16:09:53 +00:00
|
|
|
- package: deber
|
2021-07-09 22:27:18 +00:00
|
|
|
arch: arm64
|
2020-03-26 16:09:53 +00:00
|
|
|
repo: https://github.com/dawidd6/deber.git
|
|
|
|
ref: v1.0.0
|
2022-10-27 11:00:43 +00:00
|
|
|
lintian_opts: "-v"
|
2024-01-06 12:39:26 +00:00
|
|
|
install_skopeo: true
|
2020-04-29 15:02:44 +00:00
|
|
|
- package: netcat-openbsd
|
2021-07-09 22:11:23 +00:00
|
|
|
arch: arm64
|
2020-04-29 15:02:44 +00:00
|
|
|
repo: https://git.launchpad.net/ubuntu/+source/netcat-openbsd
|
2020-11-12 17:03:13 +00:00
|
|
|
ref: import/1.206-1ubuntu1
|
2022-10-27 11:00:43 +00:00
|
|
|
lintian_opts: "-v"
|
2020-11-12 16:59:50 +00:00
|
|
|
- package: iproute2
|
2021-07-09 22:21:13 +00:00
|
|
|
arch: arm
|
2020-11-12 16:59:50 +00:00
|
|
|
repo: https://git.launchpad.net/ubuntu/+source/iproute2
|
2020-11-12 17:03:13 +00:00
|
|
|
ref: import/4.18.0-1ubuntu2_ubuntu18.04.1
|
2022-10-27 11:00:43 +00:00
|
|
|
lintian_opts: "-v"
|
2020-03-25 22:13:26 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
2023-09-05 04:37:59 +00:00
|
|
|
uses: actions/checkout@v4
|
2024-01-06 12:39:26 +00:00
|
|
|
|
2020-03-25 22:13:26 +00:00
|
|
|
- name: Clone repo
|
2020-11-08 20:12:55 +00:00
|
|
|
run: git clone --depth=1 ${{matrix.repo}} -b ${{matrix.ref}} ${{matrix.package}}
|
2024-01-06 12:39:26 +00:00
|
|
|
|
2024-01-05 20:53:54 +00:00
|
|
|
- name: Remove skopeo (for testing installation)
|
2024-01-06 12:39:26 +00:00
|
|
|
if: ${{matrix.install_skopeo}}
|
|
|
|
run: sudo rm -v $(which skopeo)
|
|
|
|
|
2020-03-25 22:13:26 +00:00
|
|
|
- name: Test run
|
|
|
|
uses: ./
|
|
|
|
with:
|
2021-07-09 22:11:23 +00:00
|
|
|
cpu_architecture: ${{matrix.arch}}
|
2020-03-26 15:35:44 +00:00
|
|
|
source_directory: ${{matrix.package}}
|
|
|
|
artifacts_directory: artifacts
|
2022-10-27 11:00:43 +00:00
|
|
|
lintian_opts: ${{matrix.lintian_opts}}
|
2024-01-06 12:39:26 +00:00
|
|
|
lintian_run: ${{matrix.lintian_run || false}}
|
|
|
|
|
2020-03-26 12:26:07 +00:00
|
|
|
- name: Check files
|
|
|
|
run: |
|
2020-03-26 23:30:46 +00:00
|
|
|
ls -lh artifacts/${{matrix.package}}*.*
|
|
|
|
ls -lh ${{matrix.package}}*.* && false || true
|