Skip to content

Feat/b2b employee management #3688

Feat/b2b employee management

Feat/b2b employee management #3688

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
paths-ignore:
- "apps/**"
- "**.md"
pull_request:
types: [opened, synchronize]
paths-ignore:
- "apps/**"
- "**.md"
jobs:
init:
name: Init dependencies
timeout-minutes: 15
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
runs-on: macos-14
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- run: corepack enable
- run: pnpm --version
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
cache-dependency-path: "**/pnpm-lock.yaml"
- name: install
run: pnpm install --frozen-lockfile --prefer-offline
build:
name: Build
timeout-minutes: 15
needs: init
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
runs-on: macos-14
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- run: corepack enable
- run: pnpm --version
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
cache-dependency-path: "**/pnpm-lock.yaml"
- name: install
run: pnpm install --frozen-lockfile --prefer-offline
- name: Build
run: pnpm build
env:
NITRO_PRESET: vercel
- name: Lint
env:
TURBO_TELEMETRY_DISABLED: 1
DO_NOT_TRACK: 1
run: pnpm lint
- name: Publish package previews
run: npx pkg-pr-new publish './packages/api-client' './packages/api-gen' './packages/cms-base' './packages/composables' './packages/helpers' './packages/nuxt3-module'
test:
name: Test
timeout-minutes: 15
runs-on: macos-14
needs: init
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- run: corepack enable
- run: pnpm --version
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
cache-dependency-path: "**/pnpm-lock.yaml"
- name: install
run: pnpm install --frozen-lockfile --prefer-offline
- name: Test
run: pnpm test