Skip to content

Commit

Permalink
chore(ci): added workflow for cli package (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
CorentinTh authored Aug 31, 2024
1 parent 57330fc commit f75c142
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 4 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci-cli.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI - Lib

on:
pull_request:
push:
branches:
- main

jobs:
ci-cli:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/cli

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 22
corepack: true
cache: 'pnpm'

- name: Install dependencies
run: pnpm i
working-directory: ./

- name: Run linters
run: pnpm lint

# - name: Type check
# run: pnpm typecheck

# - name: Run unit test
# run: pnpm test

- name: Build the lib
run: pnpm build
4 changes: 2 additions & 2 deletions packages/cli/bin/enclosed.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env node
'use strict'
'use strict';

import '../dist/cli.mjs'
import '../dist/cli.mjs';
3 changes: 1 addition & 2 deletions packages/cli/src/config/config.command.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { defineCommand } from 'citty';
import picocolors from 'picocolors';
import { keys, map } from 'lodash-es';
import { keys } from 'lodash-es';
import { configDefinition } from './config.constants';
import { deleteConfig, getConfig, resetConfig, setConfig } from './config.models';

Expand Down

0 comments on commit f75c142

Please sign in to comment.