From c6d59db06382c4408c1ea2f0bd1744035e49b911 Mon Sep 17 00:00:00 2001 From: Pil0tXia Date: Tue, 11 Jun 2024 21:30:59 +0800 Subject: [PATCH 1/2] Support Continuous Integration for Frontend --- .asf.yaml | 4 ++-- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++-- 2 files changed, 33 insertions(+), 4 deletions(-) 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/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 From d230c20119b1b99313e5bd6b363bbd10cf252ae4 Mon Sep 17 00:00:00 2001 From: Pil0tXia Date: Tue, 11 Jun 2024 21:35:24 +0800 Subject: [PATCH 2/2] No need to automatically upgrade front-end dependencies --- .github/dependabot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"