-
-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix a bug that cmdx t doesn't test packages (#22760)
* chore: revert #22718 * chore: fix scripts * chore: stop setting AQUA_ROOT_DIR * ci: add a workflow for debug
- Loading branch information
1 parent
7f2969c
commit d01ec64
Showing
6 changed files
with
51 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
name: Debug with action-tmate | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
runs-on: | ||
required: false | ||
default: windows-latest | ||
pr_number: | ||
required: false | ||
ref: | ||
required: false | ||
permissions: {} | ||
jobs: | ||
action-tmate: | ||
runs-on: ${{inputs.runs-on}} | ||
steps: | ||
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | ||
with: | ||
ref: ${{inputs.ref}} | ||
|
||
- run: gh pr checkout "${{inputs.pr_number}}" | ||
if: inputs.pr_number != '' | ||
env: | ||
GITHUB_TOKEN: ${{github.token}} | ||
- uses: aquaproj/aqua-installer@6ce1f8848ec8e61f14d57bd5d7597057a6dd187c # v3.0.1 | ||
with: | ||
aqua_version: v2.28.0 | ||
env: | ||
AQUA_GITHUB_TOKEN: ${{github.token}} | ||
|
||
# The default vim doesn't work well, so we install the latest vim ourselves. | ||
- uses: rhysd/action-setup-vim@4b2071ab35df2f10bfbed2a1fdb33be3466455d8 # v1.3.2 | ||
|
||
- uses: mxschmitt/action-tmate@1005f9c9db5f1b055a495e72c6e589764984baf6 # v3.14 | ||
with: | ||
limit-access-to-actor: true # SSH Key is required | ||
env: | ||
GITHUB_TOKEN: ${{github.token}} # Pass GitHub Token to shell session |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,18 @@ | ||
FROM golang:1.22.3-bookworm@sha256:c2caf8c1c462dfa1cb58a7e8eb3e942d4013a90f42ad4ed2ac2517b37ed4bb8c | ||
WORKDIR /workspace | ||
ENV AQUA_LOG_COLOR=always | ||
ENV AQUA_POLICY_CONFIG=/workspace/aqua-policy.yaml | ||
ENV PATH=/root/.local/share/aquaproj-aqua/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/* | ||
ARG USERNAME=root | ||
ARG GROUPNAME=root | ||
ARG HOME=/root | ||
RUN (id -u $USERNAME || useradd -m $USERNAME) && \ | ||
(getent group $GROUPNAME || groupadd $GROUPNAME) | ||
USER $USERNAME | ||
WORKDIR $HOME | ||
ENV AQUA_ROOT_DIR=$HOME/aquaproj-aqua | ||
ENV AQUA_LOG_COLOR=always | ||
ENV AQUA_POLICY_CONFIG=$HOME/aqua-policy.yaml | ||
ENV PATH=$AQUA_ROOT_DIR/bin:$HOME/.cargo/bin:$PATH | ||
RUN curl -sSfL -O https://raw.githubusercontent.com/aquaproj/aqua-installer/v3.0.1/aqua-installer | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --profile minimal | ||
RUN echo "fb4b3b7d026e5aba1fc478c268e8fbd653e01404c8a8c6284fdba88ae62eda6a aqua-installer" | sha256sum -c | ||
RUN chmod +x aqua-installer | ||
RUN ./aqua-installer -v v2.28.0 | ||
COPY aqua-test.yaml aqua.yaml | ||
COPY aqua-policy.yaml aqua-policy.yaml | ||
WORKDIR /workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters