From d29e46cbc73f706477543ae81254668ad45e1d3a Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 14 Sep 2024 18:15:27 +0200 Subject: [PATCH] Properly `apt-get install inn2` in a GitHub Action. Demonstrate how to properly `apt-get install inn2` in a GitHub Action. Configure the inn2 instance so that other code can test interactions with the inn2 server. Much of this project's documentation covers how to build inn2 from source. It would be helpful if there were working examples of how to `apt-get install inn2` in Docker or in a GitHub Action. I have been struggling to do so for a few hours without success. --- .github/workflows/atp-get_install_inn2.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/atp-get_install_inn2.yml diff --git a/.github/workflows/atp-get_install_inn2.yml b/.github/workflows/atp-get_install_inn2.yml new file mode 100644 index 000000000..d17cc5d94 --- /dev/null +++ b/.github/workflows/atp-get_install_inn2.yml @@ -0,0 +1,19 @@ +# Demonstrate how to properly `apt-get install inn2` in a GitHub Action. +# Configure the inn2 instance so that other code can test interactions with the inn2 server. + +name: apt-get_install_inn2 +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + workflow_dispatch: +jobs: + apt-get_install_inn2: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: | + sudo apt-get update -qq + sudo apt-get install --yes inn2 + inn2 --version