Comment unneeded transport's action steps for debugging.

This commit is contained in:
Alejandro Cabeza Romero 2024-08-20 16:19:20 +02:00
parent 598ab17ba3
commit c07c56364b
No known key found for this signature in database
GPG Key ID: DA3D14AE478030FD
1 changed files with 32 additions and 74 deletions

View File

@ -48,50 +48,50 @@ runs:
# -----< CACHED STEPS >----- # -----< CACHED STEPS >-----
- name: Configure AWS credentials for S3 build cache # - name: Configure AWS credentials for S3 build cache
if: inputs.s3-access-key-id != '' && inputs.s3-secret-access-key != '' # if: inputs.s3-access-key-id != '' && inputs.s3-secret-access-key != ''
run: | # run: |
echo "PUSH_CACHE=true" >> $GITHUB_ENV # echo "PUSH_CACHE=true" >> $GITHUB_ENV
shell: bash # shell: bash
# This depends on where this file is within this repository. This walks up # This depends on where this file is within this repository. This walks up
# from here to the transport-interop folder # from here to the transport-interop folder
- run: | # - run: |
WORK_DIR=$(realpath "$GITHUB_ACTION_PATH/../../../transport-interop") # WORK_DIR=$(realpath "$GITHUB_ACTION_PATH/../../../transport-interop")
echo "WORK_DIR=$WORK_DIR" >> $GITHUB_OUTPUT # echo "WORK_DIR=$WORK_DIR" >> $GITHUB_OUTPUT
shell: bash # shell: bash
id: find-workdir # id: find-workdir
- uses: actions/setup-node@v3 # - uses: actions/setup-node@v3
with: # with:
node-version: 18 # node-version: 18
# Existence of /etc/buildkit/buildkitd.toml indicates that this is a # Existence of /etc/buildkit/buildkitd.toml indicates that this is a
# self-hosted runner. If so, we need to pass the config to the buildx # self-hosted runner. If so, we need to pass the config to the buildx
# action. The config enables docker.io proxy which is required to # action. The config enables docker.io proxy which is required to
# work around docker hub rate limiting. # work around docker hub rate limiting.
- run: | # - run: |
if test -f /etc/buildkit/buildkitd.toml; then # if test -f /etc/buildkit/buildkitd.toml; then
echo "config=/etc/buildkit/buildkitd.toml" >> $GITHUB_OUTPUT # echo "config=/etc/buildkit/buildkitd.toml" >> $GITHUB_OUTPUT
fi # fi
shell: bash # shell: bash
id: buildkit # id: buildkit
- name: Set up Docker Buildx # - name: Set up Docker Buildx
id: buildx # id: buildx
uses: docker/setup-buildx-action@v2 # uses: docker/setup-buildx-action@v2
with: # with:
config: ${{ steps.buildkit.outputs.config }} # config: ${{ steps.buildkit.outputs.config }}
- name: Install deps # - name: Install deps
working-directory: ${{ steps.find-workdir.outputs.WORK_DIR }} # working-directory: ${{ steps.find-workdir.outputs.WORK_DIR }}
run: npm ci # run: npm ci
shell: bash # shell: bash
- name: Load cache and build # - name: Load cache and build
working-directory: ${{ steps.find-workdir.outputs.WORK_DIR }} # working-directory: ${{ steps.find-workdir.outputs.WORK_DIR }}
run: npm run cache -- load # run: npm run cache -- load
shell: bash # shell: bash
# - name: Assert Git tree is clean. # - name: Assert Git tree is clean.
# working-directory: ${{ steps.find-workdir.outputs.WORK_DIR }} # working-directory: ${{ steps.find-workdir.outputs.WORK_DIR }}
@ -116,48 +116,6 @@ runs:
# -----< CACHED STEPS >----- # -----< CACHED STEPS >-----
# - name: Run the test
# working-directory: ${{ steps.find-workdir.outputs.WORK_DIR }}
# env:
# WORKER_COUNT: ${{ inputs.worker-count }}
# EXTRA_VERSION: ${{ inputs.extra-versions }}
# NAME_FILTER: ${{ inputs.test-filter }}
# NAME_IGNORE: ${{ inputs.test-ignore }}
# run: npm run test -- --extra-version=$EXTRA_VERSION --name-filter=$NAME_FILTER --name-ignore=$NAME_IGNORE
# shell: bash
# - name: Print the results
# working-directory: ${{ steps.find-workdir.outputs.WORK_DIR }}
# run: cat results.csv
# shell: bash
# - name: Render results
# working-directory: ${{ steps.find-workdir.outputs.WORK_DIR }}
# run: npm run renderResults > ./dashboard.md
# shell: bash
# - name: Show Dashboard Output
# working-directory: ${{ steps.find-workdir.outputs.WORK_DIR }}
# run: cat ./dashboard.md >> $GITHUB_STEP_SUMMARY
# shell: bash
# - name: Exit with Error
# working-directory: ${{ steps.find-workdir.outputs.WORK_DIR }}
# run: |
# if grep -q ":red_circle:" ./dashboard.md; then
# exit 1
# else
# exit 0
# fi
# shell: bash
# - uses: actions/upload-artifact@v3
# with:
# name: test-plans-output
# path: |
# ${{ steps.find-workdir.outputs.WORK_DIR }}/results.csv
# ${{ steps.find-workdir.outputs.WORK_DIR }}/dashboard.md
- name: Run the test - name: Run the test
working-directory: ${{ steps.find-workdir.outputs.WORK_DIR }} working-directory: ${{ steps.find-workdir.outputs.WORK_DIR }}
env: env: