40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
java:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 25
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: actions/setup-java@v6
|
|
with:
|
|
distribution: temurin
|
|
java-version: '21'
|
|
- run: sh scripts/test.sh
|
|
- run: python3 client/scripts/test-packaging.py
|
|
- run: python3 scripts/test-readiness.py
|
|
- run: node test/admin-workspace.test.cjs
|
|
- run: docker build -t objectstore-test:ci .
|
|
- run: sh scripts/test-metadata.sh
|
|
env:
|
|
OBJECTSTORE_TEST_IMAGE: objectstore-test:ci
|
|
- run: python3 scripts/test-recovery.py --image objectstore-test:ci --output out/recovery-ci
|
|
- run: python3 scripts/test-ha.py --image objectstore-test:ci --output out/ha-ci.json
|
|
- uses: actions/upload-artifact@v7
|
|
if: always()
|
|
with:
|
|
name: readiness-reports
|
|
path: |
|
|
out/ha-ci.json
|
|
out/recovery-ci/**/*.json
|
|
if-no-files-found: ignore
|
|
retention-days: 14
|