-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into fix/serving-runtime…
…-support
- Loading branch information
Showing
103 changed files
with
2,864 additions
and
19,154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Frontend Test | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- frontend/** | ||
|
||
jobs: | ||
frontend-format-linting-check: | ||
name: Code format and lint | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 12 | ||
|
||
- name: Format code | ||
run: | | ||
npm install prettier@2.8.8 --prefix ./frontend | ||
make prettier-check | ||
- name: Lint code | ||
run: | | ||
cd frontend | ||
npm run lint-check | ||
frontend-unit-tests: | ||
name: Frontend Unit Tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 12 | ||
|
||
- name: Fetch Kubeflow and install common code dependencies | ||
run: | | ||
COMMIT=$(cat frontend/COMMIT) | ||
cd /tmp && git clone https://github.com/kubeflow/kubeflow.git | ||
cd kubeflow | ||
git checkout $COMMIT | ||
cd components/crud-web-apps/common/frontend/kubeflow-common-lib | ||
npm i | ||
npm run build | ||
npm link ./dist/kubeflow | ||
- name: Install MWA dependencies | ||
run: | | ||
cd frontend | ||
npm i | ||
npm link kubeflow | ||
- name: Run unit tests | ||
run: | | ||
cd frontend | ||
npm run test:prod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
IMG ?= kserve/models-web-app | ||
TAG ?= $(shell git describe --tags --always --dirty) | ||
ARCH ?= linux/amd64 | ||
|
||
# We want the git tag to be the last commit to this directory so we don't | ||
# bump the image on unrelated changes. | ||
GIT_TAG ?= $(shell git log -n 1 --pretty=format:"%h" ./) | ||
|
||
docker-build: | ||
docker build -t $(IMG):$(GIT_TAG) . | ||
docker build -t ${IMG}:${TAG} . | ||
|
||
docker-push: | ||
docker push $(IMG):$(GIT_TAG) | ||
docker push $(IMG):$(TAG) | ||
|
||
.PHONY: docker-build-multi-arch | ||
docker-build-multi-arch: ## Build multi-arch docker images with docker buildx | ||
docker buildx build --platform ${ARCH} --tag ${IMG}:${TAG} . | ||
|
||
|
||
.PHONY: docker-build-push-multi-arch | ||
docker-build-push-multi-arch: ## Build multi-arch docker images with docker buildx and push to docker registry | ||
docker buildx build --platform ${ARCH} --tag ${IMG}:${TAG} --push . | ||
|
||
image: docker-build docker-push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
approvers: | ||
- kimwnasptd | ||
- yuzisun | ||
- rimolive | ||
- juliusvonkohout | ||
reviewers: | ||
- elikatsis | ||
- StefanoFioravanzo | ||
- kimwnasptd | ||
- yuzisun | ||
- rimolive | ||
- juliusvonkohout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.