Skip to content

Update README.md

Update README.md #98

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: integration-test
on: [push, pull_request]
jobs:
reef-java21:
name: integration_test_reef_java21
runs-on: ubuntu-latest
steps:
# run ceph rgw
- run: docker pull quay.io/ceph/demo:latest-reef
- run: docker run -d -p 80:8080 -v /etc/ceph/:/etc/ceph/ -e CEPH_DEMO_UID=qqq -e CEPH_DEMO_ACCESS_KEY=qqq -e CEPH_DEMO_SECRET_KEY=qqq -e MON_IP=127.0.0.1 -e CEPH_PUBLIC_NETWORK=127.0.0.1/32 -e NETWORK_AUTO_DETECT=4 --name rgw quay.io/ceph/demo:latest-reef demo
- run: timeout 180 bash -c "until docker logs rgw &> rgw.log && grep SUCCESS rgw.log; do sleep 1; done"
- run: docker ps
- run: cat rgw.log
- run: echo -e 'GET / HTTP/1.1\r\nHost:localhost\r\n\r\n' | nc localhost 80
# setup java
- name: Set up JDK 21
uses: actions/setup-java@v2
with:
java-version: '21'
distribution: 'adopt'
# run integration test
- uses: actions/checkout@v2
- run: mvn install -Dgpg.skip=true
- run: cat target/surefire-reports/*.txt
reef-java11:
name: integration_test_reef_java11
runs-on: ubuntu-latest
steps:
# run ceph rgw
- run: docker pull quay.io/ceph/demo:latest-reef
- run: docker run -d -p 80:8080 -v /etc/ceph/:/etc/ceph/ -e CEPH_DEMO_UID=qqq -e CEPH_DEMO_ACCESS_KEY=qqq -e CEPH_DEMO_SECRET_KEY=qqq -e MON_IP=127.0.0.1 -e CEPH_PUBLIC_NETWORK=127.0.0.1/32 -e NETWORK_AUTO_DETECT=4 --name rgw quay.io/ceph/demo:latest-reef demo
- run: timeout 180 bash -c "until docker logs rgw &> rgw.log && grep SUCCESS rgw.log; do sleep 1; done"
- run: docker ps
- run: cat rgw.log
- run: echo -e 'GET / HTTP/1.1\r\nHost:localhost\r\n\r\n' | nc localhost 80
# setup java
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
# run integration test
- uses: actions/checkout@v2
- run: mvn install -Dgpg.skip=true
- run: cat target/surefire-reports/*.txt
pacific-java8:
name: integration_test_pacific_java8
runs-on: ubuntu-latest
steps:
# run ceph rgw
- run: docker pull ceph/daemon:v6.0.3-stable-6.0-pacific-centos-8-x86_64
- run: docker run -d -p 80:8080 -v /etc/ceph/:/etc/ceph/ -e CEPH_DEMO_UID=qqq -e CEPH_DEMO_ACCESS_KEY=qqq -e CEPH_DEMO_SECRET_KEY=qqq -e NETWORK_AUTO_DETECT=4 --name rgw ceph/daemon:v6.0.3-stable-6.0-pacific-centos-8-x86_64 demo
- run: timeout 120 bash -c "until docker logs rgw &> rgw.log && grep SUCCESS rgw.log; do sleep 1; done"
- run: docker ps
- run: cat rgw.log
- run: echo -e 'GET / HTTP/1.1\r\nHost:localhost\r\n\r\n' | nc localhost 80
# setup java
- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: 1.8
# run integration test
- uses: actions/checkout@v2
- run: mvn install -Dgpg.skip=true
- run: cat target/surefire-reports/*.txt
octopus:
name: integration_test_octopus
runs-on: ubuntu-latest
steps:
# run ceph rgw
- run: docker pull ceph/daemon:v5.0.4-stable-5.0-octopus-centos-8
- run: docker run -d -p 80:8080 -v /etc/ceph/:/etc/ceph/ -e CEPH_DEMO_UID=qqq -e CEPH_DEMO_ACCESS_KEY=qqq -e CEPH_DEMO_SECRET_KEY=qqq -e NETWORK_AUTO_DETECT=4 --name rgw ceph/daemon:v5.0.4-stable-5.0-octopus-centos-8 demo
- run: timeout 120 bash -c "until docker logs rgw &> rgw.log && grep SUCCESS rgw.log; do sleep 1; done"
- run: docker ps
- run: cat rgw.log
- run: echo -e 'GET / HTTP/1.1\r\nHost:localhost\r\n\r\n' | nc localhost 80
# setup java
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
# run integration test
- uses: actions/checkout@v2
- run: mvn install -Dgpg.skip=true
- run: cat target/surefire-reports/*.txt