Skip to content

Commit

Permalink
correctly map cookie dir
Browse files Browse the repository at this point in the history
Signed-off-by: mudler <[email protected]>
  • Loading branch information
mudler committed Dec 5, 2024
1 parent 900cd57 commit 11db48a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ jobs:
- name: Run tests
env:
TWITTER_TEST_ACCOUNT: ${{ secrets.TWITTER_TEST_ACCOUNT }}
CI_DIR: cookies
run: |
make test
CI_DIR=$PWD/cookies make test
sudo mv coverage/coverage.txt coverage.txt
sudo chmod 777 coverage.txt
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ docker-build: tee/private.pem

test: tee/private.pem
@docker build --target=dependencies --build-arg baseimage=builder --secret id=private_key,src=./tee/private.pem -t $(IMAGE) -f Dockerfile .
@docker run --user root -e TWITTER_TEST_ACCOUNT -e CI_DIR -v $(PWD)/coverage:/app/coverage --rm --workdir /app $(IMAGE) go test -coverprofile=coverage/coverage.txt -covermode=atomic -v ./...
@docker run --user root -e TWITTER_TEST_ACCOUNT -v $(CI_DIR):/cookies -e CI_DIR=/cookies -v $(PWD)/coverage:/app/coverage --rm --workdir /app $(IMAGE) go test -coverprofile=coverage/coverage.txt -covermode=atomic -v ./...

0 comments on commit 11db48a

Please sign in to comment.