Skip to content

Commit baf9ecd

Browse files
committed
Update workflows and tasks configuration
- Enhanced `.github/workflows/test.yml` to execute `moon ci :lint :audit :build`. - Updated `.moon/tasks.yml` with `runInCI` option for tasks and added exclusions for `build`, `audit`, and `publish` in CI context. - Adjusted `moon.yml` to update task dependencies and commands.
1 parent f449052 commit baf9ecd

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
with:
2222
auto-install: true
2323
- name: Check
24-
run: moon check
24+
run: moon ci :lint :audit :build

.moon/tasks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ tasks:
1616
deps:
1717
- target: 'root:syncpack.format'
1818
args: '--source $projectSource/package.json'
19+
options:
20+
runInCI: false
1921
build:
2022
command: 'pnpm tsdown'
2123
inputs:

moon.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,21 @@ toolchain:
44
node:
55
version: '22.18.0'
66

7+
workspace:
8+
inheritedTasks:
9+
exclude:
10+
- 'build'
11+
- 'audit'
12+
- 'publish'
13+
714
fileGroups:
815
syncpack:
916
- '**/package.json'
1017
- '.syncpackrc.json'
1118

1219
tasks:
1320
syncpack:
14-
command: 'syncpack'
21+
command: 'pnpm syncpack'
1522
inputs:
1623
- '@group(syncpack)'
1724
syncpack.lint:
@@ -20,3 +27,5 @@ tasks:
2027
syncpack.format:
2128
extends: 'syncpack'
2229
args: 'format'
30+
options:
31+
runInCI: false

0 commit comments

Comments
 (0)