Skip to content

reorder menu sidebar items to reflect entity hierarchy (#24) #67

reorder menu sidebar items to reflect entity hierarchy (#24)

reorder menu sidebar items to reflect entity hierarchy (#24) #67

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
pull-requests: read
issues: read
packages: write
env:
CI_LINT: ${{ github.event_name == 'pull_request' }}
CI_TEST: ${{ github.event_name == 'pull_request' }}
CI_PUBLISH_RELASE: false ## TODO: enable me later.
CI_PUBLISH_PRERELEASE: ${{ github.repository == 'radius-project/dashboard' && github.ref == 'refs/heads/main' && github.event_name == 'push' }}
jobs:
build:
name: Build Packages
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Enable corepack
run: corepack enable
- name: Install Node.js 21 # Must be after corepack is enabled.
uses: actions/setup-node@v4
with:
node-version: '21'
cache: 'yarn'
cache-dependency-path: 'yarn.lock'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Lint
if: ${{ env.CI_LINT == 'true' }}
run: yarn run lint:all
- name: Format
if: ${{ env.CI_LINT == 'true' }}
run: yarn run format:check
- name: Build TypeScript
run: yarn run tsc
- name: Build
run: yarn workspaces foreach -A run build:all
- name: Build Storybook
run: yarn workspace @radapp.io/rad-components run build-storybook
- name: Run Tests
if: ${{ env.CI_TEST == 'true' }}
run: yarn run test:all
- name: Run E2E Tests
if: ${{ env.CI_TEST == 'true' }}
run: yarn run test:e2e
build-and-publish-container:
name: Build and Publish Container
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Enable corepack
run: corepack enable
- name: Install Node.js 21 # Must be after corepack is enabled.
uses: actions/setup-node@v4
with:
node-version: '21'
cache: 'yarn'
cache-dependency-path: 'yarn.lock'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build TypeScript
run: yarn run tsc
- name: Build Image
run: yarn build:backend --config ../../app-config.yaml --config ../../app-config.dashboard.yaml
- name: Build Image
run: yarn build-image
- name: Analyze Image
uses: ./.github/actions/analyze-image
with:
image: ghcr.io/radius-project/dashboard:latest
- name: Login (to ghcr.io on push to main)
if: ${{ env.CI_PUBLISH_PRERELEASE == 'true' || env.CI_PUBLISH_RELASE == 'true' }}
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Push Image (to ghcr.io on push to main)
if: ${{ env.CI_PUBLISH_PRERELEASE == 'true' }}
run: docker push ghcr.io/radius-project/dashboard:latest