Skip to content

Commit

Permalink
test(cargo): make it possible to test cargo packages (#17535)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
hituzi-no-sippo and suzuki-shunsuke authored Nov 23, 2023
1 parent dd963b2 commit 1ad57cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/wc-test-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ 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 && \
apt-get install --no-install-recommends -y tree && \
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
Expand Down

0 comments on commit 1ad57cb

Please sign in to comment.