Skip to content

Commit

Permalink
fix: run go generate in e2e Dockerfile (#36)
Browse files Browse the repository at this point in the history
* copy venom output instead of using volume
  • Loading branch information
yusufhm authored Aug 22, 2023
1 parent ca203df commit 4e19b3d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ jobs:
# # Allow proper output.
# IS_TTY: true

- name: Copy venom-output from container
run: docker cp shipshape-drupal-1:/venom-output ./venom-output
if: always()

- name: Upload venom log
uses: actions/upload-artifact@main
with:
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,4 @@ services:
build:
context: .
dockerfile: tests/e2e/Dockerfile
volumes:
- ./venom-output:/venom-output
working_dir: /shipshape/tests/e2e/suites
4 changes: 3 additions & 1 deletion tests/e2e/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,6 @@ COPY . /shipshape
RUN set -ex; \
# Install shipshape.
[ ! -z "$SHIPSHAPE_VERSION" ] && exit 0; \
cd /shipshape; go build -o /usr/local/bin/shipshape;
cd /shipshape; \
go generate ./...; \
go build -o /usr/local/bin/shipshape;

0 comments on commit 4e19b3d

Please sign in to comment.