Skip to content

Commit

Permalink
Upload cassandra docker logs as artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
masokol committed Oct 18, 2023
1 parent fcebd0a commit fe89394
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,19 @@ jobs:
test_suite: 'compile com.mycila:license-maven-plugin:check pmd:pmd pmd:cpd pmd:check pmd:cpd-check javadoc:jar'
- name: "OSGi integration"
test_suite: 'install -P docker-integration-test,osgi-integration-tests -DskipUTs'
artifacts_dir: "osgi-integration/target"
- name: "Standalone integration 4.0"
test_suite: 'verify -P docker-integration-test,standalone-integration-tests -DskipUTs'
artifacts_dir: "standalone-integration/target"
- name: "Standalone integration 4.1"
test_suite: 'verify -P docker-integration-test,standalone-integration-tests -Dit.cassandra.version=4.1 -DskipUTs'
artifacts_dir: "standalone-integration/target"
- name: "Standalone integration 5.0-alpha1"
test_suite: 'verify -P docker-integration-test,standalone-integration-tests -Dit.cassandra.version=5.0-alpha1 -DskipUTs'
artifacts_dir: "standalone-integration/target"
- name: "Python integration"
test_suite: 'verify -P docker-integration-test,python-integration-tests -DskipUTs'
artifacts_dir: "ecchronos-binary/target"
steps:
- uses: actions/checkout@v3
- name: Cache local Maven repository
Expand All @@ -57,8 +62,16 @@ jobs:
- name: install dependencies
run: mvn install -DskipTests=true
- run: mvn $TEST_SUITE -B
id: tests
env:
TEST_SUITE: ${{ matrix.test_suite }}
- name: Upload artifacts
if: ${{ failure() && steps.tests.conclusion == 'failure' }}
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.name }}-cassandra-logs
path: ${{ matrix.artifacts_dir }}/cassandra*.log
if-no-files-found: 'ignore'
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down
12 changes: 12 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,9 @@ limitations under the License.
<name>ecc-cassandra-test:${it.cassandra.version}</name>
<alias>cassandra1</alias>
<run>
<log>
<file>${project.build.directory}/cassandra1.log</file>
</log>
<memory>${it.cassandra.memory}</memory>
<memorySwap>-1</memorySwap>
<env>
Expand Down Expand Up @@ -935,6 +938,9 @@ limitations under the License.
<name>ecc-cassandra-test:${it.cassandra.version}</name>
<alias>cassandra2</alias>
<run>
<log>
<file>${project.build.directory}/cassandra2.log</file>
</log>
<memory>${it.cassandra.memory}</memory>
<memorySwap>-1</memorySwap>
<env>
Expand Down Expand Up @@ -963,6 +969,9 @@ limitations under the License.
<name>ecc-cassandra-test:${it.cassandra.version}</name>
<alias>cassandra3</alias>
<run>
<log>
<file>${project.build.directory}/cassandra3.log</file>
</log>
<memory>${it.cassandra.memory}</memory>
<memorySwap>-1</memorySwap>
<env>
Expand Down Expand Up @@ -990,6 +999,9 @@ limitations under the License.
<name>ecc-cassandra-test:${it.cassandra.version}</name>
<alias>cassandra4</alias>
<run>
<log>
<file>${project.build.directory}/cassandra4.log</file>
</log>
<memory>${it.cassandra.memory}</memory>
<memorySwap>-1</memorySwap>
<env>
Expand Down

0 comments on commit fe89394

Please sign in to comment.