Skip to content

Commit

Permalink
Create ci1.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Chua123Yun authored Sep 4, 2024
1 parent f701dc3 commit 8fafc8f
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/ci1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '17'

- name: Build with Gradle
run: gradle build

- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
with:
name: build-artifacts



path: build/libs/**

- name: Run Unit Test
run: gradle test

- name: Upload Test Reports
uses: actions/upload-artifact@v3
with:
name: test-reports
path: build/reports/tests/**
- name: Generate code coverage report
run: gradle jacocoTestReport

- name: Upload code coverage report
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: build/reports/jacoco/test/html/**

- name: Run Deployment
run: java -jar build/libs/unleash_test-V1.jar

0 comments on commit 8fafc8f

Please sign in to comment.