Skip to content

Commit

Permalink
cicd pipeline targets fixed modules only, fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gunplar committed Oct 11, 2024
1 parent 93355db commit e75576c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 29 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/reusable-build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ jobs:
gradle-version: 8.2
### Build, Test, Coverage Verification
- name: Build fat jar, Run Unit tests, Verify code coverage
run: gradle shadowJar jacocoTestReport jacocoTestCoverageVerification
## original run clause for project wise
# run: gradle shadowJar jacocoTestReport jacocoTestCoverageVerification
## current v3 target: base, model, core, psql, view
run: gradle :here-naksha-lib-view:build jacocoTestReport jacocoTestCoverageVerification
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure() # always run even if the previous step fails
Expand All @@ -71,17 +74,17 @@ jobs:
run: |
ls -l $SERVICE_JAR_DIR/*
### Upload as pipeline artifact
- name: Prepare artifact content
run: |
mkdir $ARTIFACT_DIR
cp -p $SERVICE_JAR_DIR/naksha-*-all.jar $ARTIFACT_DIR/
- name: List artifact content
run: |
ls -lR $ARTIFACT_DIR
- name: Save artifact content
uses: actions/upload-artifact@v3
with:
name: ${{ env.GITHUB_ARTIFACT_NAME }}
path: ${{ env.ARTIFACT_DIR }}
if-no-files-found: error
- run: echo "🍏 This job's status is ${{ job.status }}."
# - name: Prepare artifact content
# run: |
# mkdir $ARTIFACT_DIR
# cp -p $SERVICE_JAR_DIR/naksha-*-all.jar $ARTIFACT_DIR/
# - name: List artifact content
# run: |
# ls -lR $ARTIFACT_DIR
# - name: Save artifact content
# uses: actions/upload-artifact@v3
# with:
# name: ${{ env.GITHUB_ARTIFACT_NAME }}
# path: ${{ env.ARTIFACT_DIR }}
# if-no-files-found: error
# - run: echo "🍏 This job's status is ${{ job.status }}."
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ class PropertyFilterTest {
val byteArray = encoder.buildFeatureFromMap(feature)
val storeNumber = StoreNumber(0, Int64(0))
val version = Version(0)
val flag = Flags(0)
val tupleNumber = TupleNumber(
storeNumber = storeNumber,
uid = 0,
Expand All @@ -48,24 +47,16 @@ class PropertyFilterTest {
val tuple = Tuple(
storage = mockStorage,
tupleNumber = tupleNumber,
Metadata(
storeNumber = storeNumber,
updatedAt = Int64(0),
uid = 0,
id = "",
appId = "",
author = null,
version = version,
type = null,
flags = flag,
),
byteArray
fetchBits = 0,
meta = null,
feature = byteArray,
id = feature.id,
flags = Flags(0)
)
resultTuple = ResultTuple(
storage = mockStorage,
tupleNumber = tupleNumber,
op = ExecutedOp.READ,
featureId = null,
tuple = tuple
)
}
Expand Down

0 comments on commit e75576c

Please sign in to comment.