diff --git a/.github/workflows/ci1.yml b/.github/workflows/ci1.yml index 77dbac897a2f..9111df0aeb3a 100644 --- a/.github/workflows/ci1.yml +++ b/.github/workflows/ci1.yml @@ -1,4 +1,5 @@ name: CI + on: push: branches: [ test ] @@ -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