-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fc95cb3
commit 0c98641
Showing
1 changed file
with
26 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
name: Continuous Integration for Comment Service | ||
# name: Continuous Integration for Comment Service | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
# on: | ||
# push: | ||
# branches: | ||
# - dev | ||
|
||
jobs: | ||
testing: | ||
name: Testing Comment Service | ||
runs-on: ubuntu-latest | ||
steps: | ||
# jobs: | ||
# testing: | ||
# name: Testing Comment Service | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
# - name: Checkout code | ||
# uses: actions/checkout@v3 | ||
|
||
- name: Setup JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'corretto' | ||
java-version: 17 | ||
# - name: Setup JDK 17 | ||
# uses: actions/setup-java@v3 | ||
# with: | ||
# distribution: 'corretto' | ||
# java-version: 17 | ||
|
||
- name: Set up MongoDB URI | ||
run: echo "SPRING_DATA_MONGODB_URI=mongodb://localhost:27017/user-service" >> $GITHUB_ENV | ||
# - name: Set up MongoDB URI | ||
# run: echo "SPRING_DATA_MONGODB_URI=mongodb://localhost:27017/user-service" >> $GITHUB_ENV | ||
|
||
- name: Unit Tests | ||
run: mvn -B test --file pom.xml | ||
# - name: Unit Tests | ||
# run: mvn -B test --file pom.xml | ||
|
||
# build-image: | ||
# needs: testing | ||
# uses: ./.github/workflows/build-image.yaml | ||
# secrets: | ||
# DOCKER_HUB_ACCESS_TOKEN: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | ||
# # build-image: | ||
# # needs: testing | ||
# # uses: ./.github/workflows/build-image.yaml | ||
# # secrets: | ||
# # DOCKER_HUB_ACCESS_TOKEN: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} |