HeadBucket and HeadObject supported #62
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build MinIO test image | |
| run: docker build -t s3cpp-minio:latest . | |
| - name: Start MinIO server | |
| run: | | |
| docker run -d -p 9000:9000 -p 9001:9001 \ | |
| -e "MINIO_ROOT_USER=minio_access" \ | |
| -e "MINIO_ROOT_PASSWORD=minio_secret" \ | |
| --name minio-server \ | |
| s3cpp-minio:latest \ | |
| server /data --console-address ":9001" | |
| timeout 30 bash -c 'until curl -f http://localhost:9000/minio/health/live 2>/dev/null; do sleep 1; done' | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y software-properties-common | |
| sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y | |
| sudo apt-get update | |
| sudo apt-get install -y cmake libcurl4-openssl-dev gcc-14 g++-14 | |
| sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-14 100 | |
| sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-14 100 | |
| - name: Configure CMake | |
| run: cmake -B build -DCMAKE_BUILD_TYPE=Release | |
| - name: Build | |
| run: cmake --build build/ | |
| - name: Run tests | |
| run: ./build/tests | |
| - name: Stop MinIO server | |
| if: always() | |
| run: docker stop minio-server |