Skip to content

Commit

Permalink
ci(e2e): download already compiled structurizr-cli binary
Browse files Browse the repository at this point in the history
  • Loading branch information
andreszorro committed Nov 20, 2024
1 parent 15c8aa0 commit f351d14
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,25 +73,23 @@ jobs:
with:
path: dist/structurizr-cli-bin
key: ${{ matrix.os }}-structurizr-cli-${{ env.STRUCTURIZR_CLI_VERSION }}
- name: Compile Structurizr CLI from source
- name: Download Structurizr CLI
if: steps.structurizr-cli-cache.outputs.cache-hit != 'true'
run: |
java -version
git clone -b ${{ env.STRUCTURIZR_CLI_VERSION }} --single-branch https://github.com/structurizr/cli.git dist/structurizr-cli
cd dist/structurizr-cli
./gradlew
unzip build/distributions/structurizr-cli.zip -d ../structurizr-cli-bin/
wget https://github.com/structurizr/cli/releases/download/${{ env.STRUCTURIZR_CLI_VERSION }}/structurizr-cli.zip
unzip ./structurizr-cli.zip -d ../structurizr-cli-bin/
cd ../..
ls -la dist/structurizr-cli-bin/
- name: E2E Test (Smoke)
if: ${{ inputs.smoke }}
run: |
export STRUCTURIZR_CLI_PATH=./dist/structurizr-cli-bin/structurizr.sh
export STRUCTURIZR_CLI_PATH=./dist/structurizr-cli-bin/${{ matrix.os == 'windows' && 'structurizr.bat' || 'structurizr.sh' }}
$STRUCTURIZR_CLI_PATH help
bun test:e2e:smoke
- name: E2E Test (Full)
if: ${{ !inputs.smoke }}
run: |
export STRUCTURIZR_CLI_PATH=./dist/structurizr-cli-bin/structurizr.sh
export STRUCTURIZR_CLI_PATH=./dist/structurizr-cli-bin/${{ matrix.os == 'windows' && 'structurizr.bat' || 'structurizr.sh' }}
$STRUCTURIZR_CLI_PATH help
bun test:e2e
2 changes: 1 addition & 1 deletion .mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
bun = "1.1.20"
jq = "1.7.1"
ruby = "3.3"
java = "17"
java = "23"

[tasks."docs:install"]
run = "cd docs && bundle"
Expand Down

0 comments on commit f351d14

Please sign in to comment.