Skip to content

add test to build Dockerfile #47

add test to build Dockerfile

add test to build Dockerfile #47

Workflow file for this run

name: Quick test
on: [push]
jobs:
docker_image:
steps :

Check failure on line 5 in .github/workflows/compile.yml

View workflow run for this annotation

GitHub Actions / Quick test

Invalid workflow file

The workflow is not valid. .github/workflows/compile.yml (Line: 5, Col: 5): Required property is missing: runs-on
- name: Build Dockerfile
run: |
docker build -t test Dockerfile
build_against_packages:
strategy:
matrix:
version: ["60lts", "73", "74", "75"]
runs-on: ubuntu-latest
steps :
- uses: actions/checkout@v4
- name: Set up varnish repository and pinning
run: |
set -ex
cat << -EOF > /tmp/pref
Package: *
Pin: origin "packagecloud.io"
Pin-Priority: 999
EOF
sudo mv /tmp/pref /etc/apt/preferences.d/varnish
curl -s https://packagecloud.io/install/repositories/varnishcache/varnish${{ matrix.version }}/script.deb.sh | sudo bash
- name: Install dependencies
run: |
sudo apt-get install -y cmake gcc jq libcjson-dev python3-docutils varnish varnish-dev
- name: Build and test varnishlog-json
run: |
cmake -B build
cmake --build build/
ctest --test-dir build/ --output-on-failure
build_against_master:
runs-on: ubuntu-latest
steps :
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get install -y \
automake \
cmake \
gcc \
libjemalloc-dev \
jq \
libcjson-dev \
libedit-dev \
make \
libpcre2-dev \
python3-docutils \
python3-sphinx
- 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)'], [[email protected]])/' configure.ac
./autogen.des --prefix=/usr
sudo make install -j32
sudo cp varnishapi.pc /usr/lib/x86_64-linux-gnu/pkgconfig/
- name: Build and test varnishlog-json
run: |
set -ex
cmake -B build
cmake --build build/
ctest --test-dir build/ --output-on-failure