Skip to content

Commit b9971c7

Browse files
committed
chore: add moon to the CI
1 parent 992084f commit b9971c7

File tree

4 files changed

+24
-2
lines changed

4 files changed

+24
-2
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "CI"
2+
on:
3+
push:
4+
branches:
5+
- "main"
6+
pull_request:
7+
jobs:
8+
check:
9+
runs-on: "ubuntu-latest"
10+
steps:
11+
- uses: "actions/checkout@v3"
12+
- run: sudo apt-get install -y valgrind
13+
- uses: pnpm/[email protected]
14+
with:
15+
version: latest
16+
- uses: "actions/setup-node@v3"
17+
with:
18+
cache: "pnpm"
19+
node-version-file: ".nvmrc"
20+
- run: pnpm install --frozen-lockfile --prefer-offline
21+
- run: pnpm moon check --all

.moon/project.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ tasks:
7676
command: "rm -rf"
7777
args:
7878
- dist
79+
local: true
7980
options:
8081
cache: false
8182
platform: system

packages/benchmark.js/benches/sample.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Benchmark from "benchmark";
2-
import { withCodSpeed } from "../";
2+
import { withCodSpeed } from "..";
33

44
const suite = withCodSpeed(new Benchmark.Suite());
55

packages/tinybench/benches/sample.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { withCodSpeed } from "../";
1+
import { withCodSpeed } from "..";
22
import { Bench } from "tinybench";
33

44
const bench = withCodSpeed(new Bench({ time: 100 }));

0 commit comments

Comments
 (0)