Run test integ on generic linux package over docker debian

This commit is contained in:
lepapareil 2022-10-05 16:20:25 +02:00
parent 1c648a3e22
commit af62ed41b3
No known key found for this signature in database
GPG Key ID: F4F06B068FB00692
2 changed files with 40 additions and 0 deletions

View File

@ -55,6 +55,39 @@ jobs:
name: release-generic-linux-x64-artifacts name: release-generic-linux-x64-artifacts
path: target/upload/* path: target/upload/*
test-generic-linux-docker-debian-x64:
needs: release-generic-linux-x64
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Retrieve release-generic-linux-x64-artifacts
uses: actions/download-artifact@v3
with:
name: release-generic-linux-x64-artifacts
path: target/upload
- name: Install package and tests integ
uses: addnab/docker-run-action@v3
with:
image: debian
options: --volume ${{ github.workspace }}:/work --workdir /work --privileged
run: |
bin/install_prerequisites_docker_ubuntu.sh
bin/environment.sh
bin/release/install_generic_linux_package.sh
export PATH="/tmp/hurl-generic-linux:$PATH"
bin/test/test_prerequisites.sh
bin/test/test_integ.sh
- name: Archive production artifacts
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: test-generic-linux-package-docker-debian-x64-artifacts
path: |
integration/mitmdump.log
integration/server.log
integration/server-ssl.log
release-deb-x64: release-deb-x64:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
steps: steps:

View File

@ -0,0 +1,7 @@
#!/bin/sh
set -eu
# Install packages
apt update
apt -y install curl sudo libcurl4-openssl-dev libxml2-utils libxml2-dev libssl-dev python3 python3-pip
python3 -m pip install --upgrade pip --quiet