Skip to content

Commit

Permalink
added github action for building UI on PRs
Browse files Browse the repository at this point in the history
* excluded ui/ changes from "normal" maven build on PRs

Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
  • Loading branch information
thjaeckle committed Jul 20, 2023
1 parent 00c151d commit b11cc2f
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
# http://www.eclipse.org/legal/epl-2.0
#
# SPDX-License-Identifier: EPL-2.0
name: build
name: build-maven

on:
push:
branches:
- master
- release-*

# Run build for any PR
# Run build for any PR except some directories
pull_request:
paths-ignore:
- 'README.md'
Expand All @@ -25,6 +25,7 @@ on:
- 'SECURITY.md'
- 'deployment/**'
- 'documentation/**'
- 'ui/**'

jobs:
build:
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/ui-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Copyright (c) 2023 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# http://www.eclipse.org/legal/epl-2.0
#
# SPDX-License-Identifier: EPL-2.0
name: build-ui

on:
push:
branches:
- master
- release-*

# Run build for any PR targeting ui/
pull_request:
paths:
- 'ui/**'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install npm dependencies
run: npm install
working-directory: ./ui
- name: Build UI with node
run: npm run build
working-directory: ./ui

0 comments on commit b11cc2f

Please sign in to comment.