From 1ad57cbd16b38409e40572e4b00be55abee38d96 Mon Sep 17 00:00:00 2001 From: hituzi no sippo <43565959+hituzi-no-sippo@users.noreply.github.com> Date: Thu, 23 Nov 2023 10:39:44 +0900 Subject: [PATCH] test(cargo): make it possible to test cargo packages (#17535) * test(cargo): add support for testing cargo packages * test(cargo): fix error Error message: `executable files aren't found Files in the unarchived package` * test(cargo): add GitHub Actions step to test cargo package --------- Co-authored-by: Shunsuke Suzuki --- .github/workflows/wc-test-docker.yaml | 5 ++++- docker/Dockerfile | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wc-test-docker.yaml b/.github/workflows/wc-test-docker.yaml index ed215a14165..246ed465b1a 100644 --- a/.github/workflows/wc-test-docker.yaml +++ b/.github/workflows/wc-test-docker.yaml @@ -13,4 +13,7 @@ jobs: policy_allow: "true" env: AQUA_GITHUB_TOKEN: ${{github.token}} - - run: cmdx t suzuki-shunsuke/mkghtag + - name: test GitHub Release + run: cmdx t suzuki-shunsuke/mkghtag + - name: test cargo package + run: cmdx t bensadeh/tailspin diff --git a/docker/Dockerfile b/docker/Dockerfile index 1588fca7a0c..6b884ceb2e1 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -3,7 +3,7 @@ WORKDIR /workspace ENV AQUA_ROOT_DIR=/root/aquaproj-aqua ENV AQUA_LOG_COLOR=always ENV AQUA_POLICY_CONFIG=/workspace/aqua-policy.yaml -ENV PATH=$AQUA_ROOT_DIR/bin:$PATH +ENV PATH=$AQUA_ROOT_DIR/bin:/root/.cargo/bin:$PATH SHELL ["/bin/bash", "-o", "pipefail", "-c"] RUN \ apt-get update && \ @@ -11,6 +11,7 @@ RUN \ apt-get clean && \ rm -rf /var/lib/apt/lists/* RUN curl -sSfL -O https://raw.githubusercontent.com/aquaproj/aqua-installer/v2.2.0/aqua-installer +RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --profile minimal RUN echo "d13118c3172d90ffa6be205344b93e8621de9bf47c852d80da188ffa6985c276 aqua-installer" | sha256sum -c RUN chmod +x aqua-installer RUN ./aqua-installer -v v2.19.0