Skip to content

Commit

Permalink
chore: improved workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
j0a0m4 committed Jun 20, 2023
1 parent 3c3ba91 commit 1f52bad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3

- name: Build the Docker image
run: docker build . --file Dockerfile.build --tag my-image-name:$(date +%s)
run: docker build . --file Dockerfile.build --tag ports-and-adapters-build:$(date +%s)
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3

- name: Build the Docker image
run: docker build . --file Dockerfile.test --tag my-image-name:$(date +%s)
run: docker build . --file Dockerfile.test --tag ports-and-adapters-test:$(date +%s)
5 changes: 1 addition & 4 deletions Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ COPY gradle /src/gradle
WORKDIR /src
RUN ["./gradlew", "--version"]

FROM GRADLE as BUILDER
FROM GRADLE
COPY . .
RUN ["./gradlew", "clean"]

FROM BUILDER
RUN [ "./gradlew", "test", "--stacktrace", "--no-daemon", "--parallel"]

0 comments on commit 1f52bad

Please sign in to comment.