Skip to content

Commit

Permalink
test: use fixture for repo labels
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Sep 1, 2023
1 parent 99d47d7 commit 93b910d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ ARG GITHUB_REPOSITORY
RUN --mount=type=bind,target=.,rw \
--mount=type=cache,target=/src/.yarn/cache \
--mount=type=cache,target=/src/node_modules \
--mount=type=secret,id=GITHUB_TOKEN \
GITHUB_TOKEN=$(cat /run/secrets/GITHUB_TOKEN) yarn run test --coverageDirectory=/tmp/coverage
yarn run test --coverageDirectory=/tmp/coverage

FROM scratch AS test-coverage
COPY --from=test /tmp/coverage /
6 changes: 0 additions & 6 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,4 @@ target "test" {
}
target = "test-coverage"
output = ["./coverage"]
secret = ["id=GITHUB_TOKEN,env=GITHUB_TOKEN"]
}

target "test-local" {
inherits = ["test"]
secret = ["id=GITHUB_TOKEN,src=.dev/.ghtoken"]
}

0 comments on commit 93b910d

Please sign in to comment.