diff --git a/.asf.yaml b/.asf.yaml index f7e39514..8209f946 100644 --- a/.asf.yaml +++ b/.asf.yaml @@ -43,8 +43,8 @@ github: strict: false contexts: - dependency-review - - Build (ubuntu-latest, 8, java) - - Build (ubuntu-latest, 11, java) + - Build Backend (ubuntu-latest, 8, java) + - Build Backend (ubuntu-latest, 11, java) required_pull_request_reviews: dismiss_stale_reviews: true required_approving_review_count: 0 # Temporary 0 to allow committers to merge themselves PR diff --git a/.github/dependabot.yml b/.github/dependabot.yml index a6fcca82..41c3bde9 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -27,7 +27,7 @@ updates: update-types: [ "version-update:semver-major" ] - package-ecosystem: "npm" directory: "./eventmesh-dashboard-view" - # Disable front-end PRs temporarily since 'npm run build' fails + # No need to automatically upgrade front-end dependencies open-pull-requests-limit: 0 schedule: interval: "monthly" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 68a92f7c..904b3254 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,8 +26,8 @@ on: branches: [ '**' ] jobs: - build: - name: Build + build-be: + name: Build Backend strategy: fail-fast: false matrix: @@ -113,3 +113,32 @@ jobs: - name: Run Unit Tests run: ./mvnw -B test --file pom.xml + + build-fe: + name: Build Frontend + strategy: + fail-fast: false + matrix: + os: [ ubuntu-latest ] + runs-on: ${{ matrix.os }} + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install dependencies + run: npm install --legacy-peer-deps + working-directory: ./eventmesh-dashboard-view + + - name: Build + run: npm run build + working-directory: ./eventmesh-dashboard-view + +# - name: Run tests +# run: npm test +# working-directory: ./eventmesh-dashboard-view