Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE #156] Support Continuous Integration for Frontend #157

Merged
merged 2 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
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
Loading