Skip to content

Commit

Permalink
revert run-without-nix
Browse files Browse the repository at this point in the history
  • Loading branch information
miampf committed Oct 29, 2024
1 parent 9edd55a commit 3139cb9
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ on:
self-hosted:
description: "Self Hosted"
type: boolean
run-without-nix:
description: "Run the E2E test without using a nix shell"
type: boolean
required: false
default: false

env:
container_registry: ghcr.io/edgelesssys
Expand Down Expand Up @@ -78,22 +73,11 @@ jobs:
- name: E2E Test
run: |
nix run .#scripts.get-logs workspace/e2e.namespace &
if [[ "${{inputs.run-without-nix}}" == "false" ]]; then
echo "Running with nix"
nix shell -L .#contrast.e2e --command ${{ inputs.test-name }}.test -test.v \
--image-replacements workspace/just.containerlookup \
--namespace-file workspace/e2e.namespace \
--platform ${{ inputs.platform }} \
--skip-undeploy="${{ inputs.skip-undeploy && 'true' || 'false' }}"
else
echo "Running without nix"
nix build .#contrast.e2e
./result/bin/${{ inputs.test-name }}.test -test.v \
--image-replacements workspace/just.containerlookup \
--namespace-file workspace/e2e.namespace \
--platform ${{ inputs.platform }} \
--skip-undeploy="${{ inputs.skip-undeploy && 'true' || 'false' }}"
fi
nix shell -L .#contrast.e2e --command ${{ inputs.test-name }}.test -test.v \
--image-replacements workspace/just.containerlookup \
--namespace-file workspace/e2e.namespace \
--platform ${{ inputs.platform }} \
--skip-undeploy="${{ inputs.skip-undeploy && 'true' || 'false' }}"
- name: Upload logs
if: always()
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
Expand Down

0 comments on commit 3139cb9

Please sign in to comment.