Skip to content

Commit

Permalink
Update ci1.yml V9
Browse files Browse the repository at this point in the history
  • Loading branch information
Chua123Yun authored Sep 4, 2024
1 parent c636fee commit 4d6dff2
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions .github/workflows/ci1.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: CI

on:
push:
branches: [ test ]
Expand All @@ -18,56 +19,41 @@ jobs:
with:
node-version: '20'

# Install dependencies using yarn
- name: Install dependencies
run: yarn install

# Make the build script executable
- name: Make build script executable
- name: Make frontend build script executable
run: chmod +x ./scripts/build-frontend-if-needed.sh

- name: Verify script permissions
run: |
chmod +x ./your-script.sh
ls -l ./your-script.sh
# Run yarn build command
- name: Run yarn build:frontend:if-needed
- name: Run frontend build
run: ./scripts/build-frontend-if-needed.sh

# Build with Gradle
- name: Build with Gradle
- name: Build project with Gradle
run: ./gradlew build

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

# Run Unit Test
- name: Run Unit Test
- name: Run Unit Tests
run: ./gradlew test

# Upload Test Reports
- name: Upload Test Reports
uses: actions/upload-artifact@v3
with:
name: test-reports
path: build/reports/tests/**

# Generate Code Coverage Report
- name: Generate code coverage report
- name: Generate and Upload Code Coverage Report
run: ./gradlew jacocoTestReport

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

# Run Deployment
- name: Run Deployment
run: java -jar build/libs/unleash-test-V1.jar

0 comments on commit 4d6dff2

Please sign in to comment.