From effd0739dad5a367b590320004d426207d67bd6a Mon Sep 17 00:00:00 2001 From: francisco souza <108725+fsouza@users.noreply.github.com> Date: Tue, 9 May 2023 21:38:15 -0400 Subject: [PATCH] Add example from README to CI This should prevent breakages in the future. --- .github/workflows/main.yml | 3 +++ ci/run-curl-example.sh | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 ci/run-curl-example.sh diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bfa8e89c52..af8d38c81d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -144,6 +144,9 @@ jobs: - lang: cpp docker-image: alpine:3.15.4 entrypoint: /bin/sh + - lang: curl + docker-image: alpine + entrypoint: /bin/sh name: test-${{ matrix.lang }}-example runs-on: ubuntu-latest diff --git a/ci/run-curl-example.sh b/ci/run-curl-example.sh new file mode 100644 index 0000000000..816c93cb7b --- /dev/null +++ b/ci/run-curl-example.sh @@ -0,0 +1,10 @@ +# Copyright 2023 Francisco Souza. All rights reserved. +# Use of this source code is governed by a BSD-style +# license that can be found in the LICENSE file. + +set -e + +./fake-gcs-server -backend memory -port 4443 -data ${PWD}/examples/data & + +apk add --update curl +curl --silent --fail --insecure https://0.0.0.0:4443/storage/v1/b