From 6fbaae6947e78fdb533bb5e554d5580a34fc74e2 Mon Sep 17 00:00:00 2001 From: gmega Date: Mon, 23 Jun 2025 09:58:48 -0300 Subject: [PATCH] feat: dockerless CI --- .github/workflows/ci.yml | 22 +++++++++------------- Dockerfile | 20 -------------------- test/test_codex.bats | 2 +- 3 files changed, 10 insertions(+), 34 deletions(-) delete mode 100644 Dockerfile diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a41833..9ac6a9c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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/ diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 8ddc1e7..0000000 --- a/Dockerfile +++ /dev/null @@ -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 - - - - diff --git a/test/test_codex.bats b/test/test_codex.bats index 04b4be9..3924c72 100755 --- a/test/test_codex.bats +++ b/test/test_codex.bats @@ -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