Skip to content

Merge pull request #21 from ChaiyoKung/feat/feature-soft-delete-file #113

Merge pull request #21 from ChaiyoKung/feat/feature-soft-delete-file

Merge pull request #21 from ChaiyoKung/feat/feature-soft-delete-file #113

Workflow file for this run

name: Run Test
on: push
env:
NODE_VERSION: 18
PNPM_VERSION: 8
jobs:
test-cli:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ env.PNPM_VERSION }}
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build cli
run: pnpm exec nx run cli:build
- name: Run production
run: node ./dist/apps/cli/main.js --dir ./demo
test-web:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ env.PNPM_VERSION }}
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Lint web
run: pnpm exec nx run web:lint
- name: Build web
run: pnpm exec nx run web:build
test-modules:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ env.PNPM_VERSION }}
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Lint modules
run: pnpm exec nx run modules:lint
- name: Test modules
run: pnpm exec nx run modules:test