From be7643b5074ae77f24f740acf21847c8d30ddcbc Mon Sep 17 00:00:00 2001 From: Guillaume Quintard Date: Wed, 3 Apr 2024 11:37:57 -0700 Subject: [PATCH] add test to build Dockerfile --- .github/workflows/compile.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 8069516..53a18a2 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -1,6 +1,16 @@ name: Quick test on: [push] jobs: + docker_image: + runs-on: ubuntu-latest + steps : + - uses: actions/checkout@v4 + - name: Build Dockerfile + run: | + pwd + ls + docker build -t test . + build_against_packages: strategy: matrix: @@ -8,7 +18,8 @@ jobs: runs-on: ubuntu-latest steps : - uses: actions/checkout@v4 - - run: | + - name: Set up varnish repository and pinning + run: | set -ex cat << -EOF > /tmp/pref Package: * @@ -26,7 +37,8 @@ jobs: runs-on: ubuntu-latest steps : - uses: actions/checkout@v4 - - run: | + - name: Install dependencies + run: | sudo apt-get install -y \ automake \ cmake \ @@ -39,7 +51,8 @@ jobs: libpcre2-dev \ python3-docutils \ python3-sphinx - - run: | + - name: Build varnish + run: | git clone https://github.com/varnishcache/varnish-cache.git cd varnish-cache sed -i 's/^AC_INIT.*/AC_INIT([Varnish], ['$(date +%Y%m%d)'], [varnish-dev@varnish-cache.org])/' configure.ac