Skip to content

Update: Update engine #14

Update: Update engine

Update: Update engine #14

name: "[sub-chart] Lint, Test, Typecheck"
on:
push:
paths:
- "sub-chart/**"
- ".github/workflows/sub-chart-*.yml"
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8.6.1
- name: Setup node
uses: actions/setup-node@v3
with:
node-version-file: sub-chart/.node-version
cache: "pnpm"
cache-dependency-path: sub-chart/pnpm-lock.yaml
- name: Run sub-chart lint
working-directory: ./sub-chart
run: |
pnpm i
pnpm lint
- name: Run sub-chart test
working-directory: ./sub-chart
run: |
pnpm test
- name: Run sub-chart typecheck
working-directory: ./sub-chart
run: |
pnpm typecheck
- name: Build production
if: github.ref_name == 'main'
working-directory: ./sub-chart
run: |
pnpm build
- name: Build image
if: github.ref_name == 'main'
uses: ./.github/actions/build
with:
directory-name: sub-chart