feat: dockerless CI

This commit is contained in:
gmega 2025-06-23 09:58:48 -03:00
parent 070b3d188a
commit 6fbaae6947
No known key found for this signature in database
GPG Key ID: 6290D34EAD824B18
3 changed files with 10 additions and 34 deletions

View File

@ -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/

View File

@ -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

View File

@ -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