diff --git a/.github/workflows/pull_request_ubuntu_build.yml b/.github/workflows/pull_request_ubuntu_build.yml
new file mode 100644
index 0000000..de4a2c6
--- /dev/null
+++ b/.github/workflows/pull_request_ubuntu_build.yml
@@ -0,0 +1,36 @@
+name: CI - Pull request - Ubuntu
+
+on:
+ pull_request:
+
+jobs:
+ build-handler:
+ name: Build Transaction Counting Handler
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+ - name: Set up JDK 11
+ uses: actions/setup-java@v3
+ with:
+ java-version: '11'
+ distribution: 'temurin'
+ - name: Build with Maven
+ working-directory: ./counter
+ run: mvn package --file pom.xml
+ - name: Upload test coverage to Codecov
+ uses: codecov/codecov-action@v4
+
+ build-service:
+ name: Build Transaction Counting Service
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+ - name: Set up Ballerina
+ uses: ballerina-platform/setup-ballerina@v1
+ with:
+ version: '2201.8.0'
+ - name: Build Ballerina service
+ working-directory: ./service
+ run: bal build
diff --git a/counter/pom.xml b/counter/pom.xml
index b3f63f3..b002412 100644
--- a/counter/pom.xml
+++ b/counter/pom.xml
@@ -141,6 +141,65 @@
true
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.4
+
+
+ default-prepare-agent-by-coverage-enforcer
+
+ prepare-agent
+
+
+ argLine
+
+
+
+ default-report-by-coverage-enforcer
+
+ report
+
+
+ ${project.build.directory}/jacoco.exec
+
+
+
+ default-check-by-coverage-enforcer
+
+ check
+
+
+ ${project.build.directory}/jacoco.exec
+
+
+
+ BUNDLE
+
+
+
+ LINE
+ COVEREDRATIO
+ 0.0
+
+
+
+
+
+
+
+
+
+ maven-surefire-plugin
+ 2.22.2
+
+ ${argLine}
+
+
+
+ maven-failsafe-plugin
+ 2.22.2
+