Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Build Knight-Light UI: Bump the npm_and_yarn group across 2 directories with 6 updates Bumps the npm_and_yarn group with 4 updates in the /node-server directory: [express](https://github.com/expressjs/express), [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse), [semver](https://github.com/npm/node-semver) and [json5](https://github.com/json5/json5). Bumps the npm_and_yarn group with 3 updates in the /ui directory: [@babel/traverse](https://github.com/babel/babel/tree/HE... #304

Build Knight-Light UI: Bump the npm_and_yarn group across 2 directories with 6 updates Bumps the npm_and_yarn group with 4 updates in the /node-server directory: [express](https://github.com/expressjs/express), [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse), [semver](https://github.com/npm/node-semver) and [json5](https://github.com/json5/json5). Bumps the npm_and_yarn group with 3 updates in the /ui directory: [@babel/traverse](https://github.com/babel/babel/tree/HE...

Build Knight-Light UI: Bump the npm_and_yarn group across 2 directories with 6 updates Bumps the npm_and_yarn group with 4 updates in the /node-server directory: [express](https://github.com/expressjs/express), [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse), [semver](https://github.com/npm/node-semver) and [json5](https://github.com/json5/json5). Bumps the npm_and_yarn group with 3 updates in the /ui directory: [@babel/traverse](https://github.com/babel/babel/tree/HE... #304

Workflow file for this run

name: Build Knight-Light UI
run-name: "Build Knight-Light UI: ${{ github.event.head_commit.message }}"
on: [push, workflow_dispatch]
jobs:
code-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Install dependencies
run: |
cd ui
npm ci
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Test with Node
run: |
cd ui
npm ci
npm run test
workflow_engine:
runs-on: ubuntu-latest
name: Run Workflow Engine
steps:
- uses: actions/checkout@v4
- id: vars
run: |
echo full_image_tag="ttl.sh/$(cat /proc/sys/kernel/random/uuid):30m" >> $GITHUB_OUTPUT
echo full_bundle_tag="ttl.sh/$(cat /proc/sys/kernel/random/uuid):30m" >> $GITHUB_OUTPUT
- name: Run Workflow Engine
uses: cms-enterprise/batcave-workflow-engine-action/image-build-scan-publish/docker@main
with:
build_dir: "ui"
dockerfile: "ui/Dockerfile"
tag: ${{ steps.vars.outputs.full_image_tag }}
bundle_publish_tag: ${{ steps.vars.outputs.full_bundle_tag }}
deploy_impl:
runs-on: ubuntu-latest
needs: workflow_engine
steps:
- name: Clone Manifest
uses: actions/checkout@v4
with:
repository: CMS-Enterprise/batcave-knight-light-manifest
ssh-key: ${{ secrets.MANIFEST_DEPLOY_TOKEN }}
- uses: gatecheckdev/deploykit-action/kustomize@main
with:
image: ${{ needs.workflow_engine.outputs.full_image_tag }}
directory: "."
service: "knight-light-ui"
service_directory: "impl"
manifest_deploy_token: ${{ secrets.MANIFEST_DEPLOY_TOKEN }}