mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-06 23:43:08 +00:00
Removed modules: - sales (including reservations, slot queue, marketplace abstractions, state machines, etc) - purchasing - erasure coding - contract interactions - prover - slot builder - block exchange payments - sales/purchasing from REST api - removed persistence command and all config params from cli configuration - CI workflows (devnet, dist tests, cirdl build, start eth node, contracts version reporting) - unused modules from tests - marketplace integration tests, and starting provider/validator/hardhat nodes - unused manifest properties - integration tests using the above # Conflicts: # .github/workflows/ci-reusable.yml # .github/workflows/docker.yml # build.nims # codex/blockexchange/engine/payments.nim # codex/codex.nim # codex/conf.nim # codex/contracts/Readme.md # codex/erasure.nim # codex/erasure/backend.nim # codex/erasure/backends/leopard.nim # codex/erasure/erasure.nim # codex/rest/api.nim # codex/sales.nim # codex/sales/reservations.nim # codex/sales/states/filled.nim # codex/sales/states/preparing.nim # codex/sales/states/provingsimulated.nim # codex/slots/builder/builder.nim # codex/slots/converters.nim # codex/slots/proofs/backends/circomcompat.nim # codex/slots/proofs/backends/converters.nim # codex/slots/proofs/prover.nim # codex/slots/sampler/sampler.nim # codex/slots/sampler/utils.nim # codex/slots/types.nim # tests/integration/5_minutes/testrestapivalidation.nim # tests/integration/hardhatprocess.nim # tests/integration/multinodes.nim # tools/cirdl/cirdl.nim
73 lines
2.1 KiB
YAML
73 lines
2.1 KiB
YAML
name: Reusable - CI
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
matrix:
|
|
type: string
|
|
cache_nonce:
|
|
default: '0'
|
|
description: Allows for easily busting actions/cache caches
|
|
required: false
|
|
type: string
|
|
|
|
env:
|
|
cache_nonce: ${{ inputs.cache_nonce }}
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
include: ${{ fromJson(inputs.matrix) }}
|
|
|
|
defaults:
|
|
run:
|
|
shell: ${{ matrix.shell }} {0}
|
|
|
|
name: ${{ matrix.os }}-${{ matrix.tests }}-${{ matrix.cpu }}-${{ matrix.nim_version }}-${{ matrix.job_number }}
|
|
runs-on: ${{ matrix.builder }}
|
|
timeout-minutes: 90
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
- name: Setup Nimbus Build System
|
|
uses: ./.github/actions/nimbus-build-system
|
|
with:
|
|
os: ${{ matrix.os }}
|
|
cpu: ${{ matrix.cpu }}
|
|
shell: ${{ matrix.shell }}
|
|
nim_version: ${{ matrix.nim_version }}
|
|
coverage: false
|
|
|
|
## Part 1 Tests ##
|
|
- name: Unit tests
|
|
if: matrix.tests == 'unittest' || matrix.tests == 'all'
|
|
run: make -j${ncpu} test
|
|
|
|
## Part 2 Tests ##
|
|
- name: Integration tests
|
|
if: matrix.tests == 'integration' || matrix.tests == 'all'
|
|
env:
|
|
CODEX_INTEGRATION_TEST_INCLUDES: ${{ matrix.includes }}
|
|
run: make -j${ncpu} testIntegration
|
|
|
|
- name: Upload integration tests log files
|
|
uses: actions/upload-artifact@v4
|
|
if: (matrix.tests == 'integration' || matrix.tests == 'all') && always()
|
|
with:
|
|
name: ${{ matrix.os }}-${{ matrix.cpu }}-${{ matrix.nim_version }}-${{ matrix.job_number }}-integration-tests-logs
|
|
path: tests/integration/logs/
|
|
retention-days: 1
|
|
|
|
status:
|
|
if: always()
|
|
needs: [build]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped') }}
|
|
run: exit 1
|