This commit is contained in:
1 parent
b724a21a0d
commit
d73fa2c435
45 files changed
+2733
-226
No files matched your search
@@ -0,0 +1,71 @@
|
||||
name: ObjectStore CI
|
||||
|
||||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
code: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: objectstore-ci
|
||||
timeout-minutes: 60
|
||||
env:
|
||||
COMPOSE_PARALLEL_LIMIT: '1'
|
||||
CARGO_BUILD_JOBS: '1'
|
||||
CARGO_PROFILE_DEV_DEBUG: '0'
|
||||
CARGO_PROFILE_TEST_DEBUG: '0'
|
||||
JAVA_TOOL_OPTIONS: -Xmx384m -XX:ActiveProcessorCount=2
|
||||
steps:
|
||||
- name: Check out source
|
||||
uses: https://github.com/actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Install Java 21
|
||||
uses: https://github.com/actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: '21'
|
||||
- name: Java service and client tests
|
||||
run: sh scripts/test.sh
|
||||
- name: Packaging and test runner checks
|
||||
run: |
|
||||
python3 client/scripts/test-packaging.py
|
||||
python3 scripts/test-readiness.py
|
||||
node test/admin-workspace.test.cjs
|
||||
- name: Install Rust
|
||||
uses: https://github.com/dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca
|
||||
with:
|
||||
toolchain: '1.99.1'
|
||||
- name: Rust client tests
|
||||
run: cargo test --locked --manifest-path rust-client/Cargo.toml
|
||||
- name: Build Docker image
|
||||
run: docker build -t objectstore-test:ci .
|
||||
- name: Cluster metadata tests
|
||||
run: sh scripts/test-metadata.sh
|
||||
env:
|
||||
OBJECTSTORE_TEST_IMAGE: objectstore-test:ci
|
||||
- name: Crash and restore tests
|
||||
run: python3 scripts/test-recovery.py --image objectstore-test:ci --output out/recovery-ci
|
||||
- name: Metadata failover tests
|
||||
run: python3 scripts/test-ha.py --image objectstore-test:ci --output out/ha-ci.json
|
||||
- name: Package Java client
|
||||
run: bash client/scripts/build-maven-repo.sh
|
||||
- name: Save Java packages
|
||||
uses: https://github.com/actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
|
||||
with:
|
||||
name: objectstore-java-client
|
||||
path: client/dist/maven-repo/
|
||||
if-no-files-found: error
|
||||
retention-days: 14
|
||||
- name: Save test reports
|
||||
if: always()
|
||||
uses: https://github.com/actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
|
||||
with:
|
||||
name: readiness-reports
|
||||
path: |
|
||||
out/ha-ci.json
|
||||
out/recovery-ci/**/*.json
|
||||
if-no-files-found: warn
|
||||
retention-days: 14
|
||||
Reference in new issue
Block a user