mirror of
https://github.com/logos-storage/logos-storage-local-harness.git
synced 2026-01-03 05:53:08 +00:00
feat: dockerless CI
This commit is contained in:
parent
070b3d188a
commit
6fbaae6947
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
@ -16,20 +16,16 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Build Test Image
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: Dockerfile
|
||||
push: false
|
||||
load: true
|
||||
tags: clh:test
|
||||
- name: Get Codex
|
||||
run: |
|
||||
curl -s https://get.codex.storage/install.sh | bash
|
||||
|
||||
- name: Lint
|
||||
run: docker run -v --rm clh:test bash -c 'shellcheck -x ./src/* ./test/*.bats'
|
||||
uses: ludeeus/action-shellcheck@master
|
||||
with:
|
||||
ignore_paths: >-
|
||||
test/bats
|
||||
test/test_helper
|
||||
|
||||
- name: Run Tests
|
||||
run: docker run -v --rm clh:test ./test/bats/bin/bats test/
|
||||
run: ./test/bats/bin/bats test/
|
||||
|
||||
20
Dockerfile
20
Dockerfile
@ -1,20 +0,0 @@
|
||||
# FIXME: the Codex we're using is NOT the same as the one in the
|
||||
# submodule. Ideally we'd first build the Codex image from
|
||||
# that Dockerfile, and then use THAT in here.
|
||||
FROM codexstorage/nim-codex:latest AS codex
|
||||
|
||||
FROM ubuntu:22.04
|
||||
|
||||
COPY --from=codex /usr/local/bin/codex /usr/local/bin/codex
|
||||
ENV CODEX_BINARY=/usr/local/bin/codex
|
||||
|
||||
RUN apt-get update && apt-get install -y shellcheck git curl libgomp1
|
||||
|
||||
WORKDIR /codex-local-harness
|
||||
COPY . .
|
||||
|
||||
RUN git submodule update --init --recursive
|
||||
|
||||
|
||||
|
||||
|
||||
@ -44,7 +44,7 @@ setup() {
|
||||
|
||||
@test "should pass readiness check if node is running" {
|
||||
data_dir=$(clh_output_folder "codex-temp")
|
||||
"${CODEX_BINARY}" --nat:none --data-dir="$data_dir" &> /dev/null &
|
||||
"${_cdx_binary}" --nat:none --data-dir="$data_dir" &> /dev/null &
|
||||
pid=$!
|
||||
|
||||
assert cdx_ensure_ready 0 3
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user