Skip to content

Commit

Permalink
[ISSUE #156] Support Continuous Integration for Frontend (#157)
Browse files Browse the repository at this point in the history
* Support Continuous Integration for Frontend

* No need to automatically upgrade front-end dependencies
  • Loading branch information
Pil0tXia committed Jun 11, 2024
1 parent a4bca87 commit 43bf497
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
33 changes: 31 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ on:
branches: [ '**' ]

jobs:
build:
name: Build
build-be:
name: Build Backend
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -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

0 comments on commit 43bf497

Please sign in to comment.