Skip to content

Commit

Permalink
Support Continuous Integration for Frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
Pil0tXia committed Jun 11, 2024
1 parent 20fe9a1 commit c6d59db
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 4 deletions.
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
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 c6d59db

Please sign in to comment.