Skip to content

Commit c3257fa

Browse files
committed
chore: make it stable on zfs
1 parent 82dc5d5 commit c3257fa

File tree

6 files changed

+6
-22
lines changed

6 files changed

+6
-22
lines changed

.github/workflows/ci-core-cf-deploy.yaml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ env:
99
GIT_DISCOVERY_ACROSS_FILESYSTEM: 'true'
1010

1111
jobs:
12-
ci:
13-
uses: ./.github/workflows/ci-base.yaml
14-
1512
cf-deploy:
1613
name: cf-deploy
1714
needs: ci
@@ -21,15 +18,7 @@ jobs:
2118
steps:
2219
- uses: actions/checkout@v4
2320

24-
- uses: pnpm/action-setup@v4
25-
name: Install pnpm
26-
with:
27-
version: 10
28-
29-
- uses: useblacksmith/setup-node@v5
30-
with:
31-
node-version: 22
32-
cache: pnpm
21+
- uses: actions/base
3322

3423
- name: install
3524
run: pnpm install

actions/runtime/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ runs:
1414
# - uses: useblacksmith/setup-node@v5
1515
- uses: actions/setup-node@v4
1616
with:
17-
node-version: 22
17+
node-version: "22"
1818
cache: pnpm

cli/build-cmd.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { SuperThis } from "@fireproof/core-types-base";
88
import { SemVer } from "semver";
99

1010
function getEnvVersion(version = "refs/tags/v0.0.0-smoke") {
11-
console.log(`Using GITHUB_REF: ${process.env.GITHUB_REF}`);
1211
if (
1312
process.env.GITHUB_REF &&
1413
(process.env.GITHUB_REF.startsWith("refs/tags/v") || process.env.GITHUB_REF.startsWith("refs/tags/core@"))
@@ -27,15 +26,12 @@ async function getVersion(fpVersionFname: string) {
2726
if (!top) {
2827
top = process.cwd();
2928
}
30-
console.log("-1");
3129
const fpVersionFile = path.join(path.dirname(top), fpVersionFname);
3230
if (fs.existsSync(fpVersionFile)) {
33-
console.log("-2", process.env.GITHUB_REF, fpVersionFile);
3431
return getEnvVersion((await fs.readFile(fpVersionFile, "utf-8")).trim());
3532
}
3633
const gitHead = (await $`git rev-parse --short HEAD`).stdout.trim();
3734
const dateTick = (await $`date +%s`).stdout.trim();
38-
console.log("-3");
3935
return getEnvVersion(`refs/tags/v0.0.0-smoke-${gitHead}-${dateTick}`);
4036
}
4137

@@ -191,7 +187,6 @@ export function buildCmd(sthis: SuperThis) {
191187
}
192188
if (args.prepareVersion) {
193189
await fs.mkdirp(args.dstDir);
194-
console.log(`Preparing version: ${args.version}`);
195190
const fpVersionFile = path.join(args.dstDir, "fp-version.txt");
196191
args.version = await getVersion(args.fpVersion);
197192
await fs.writeFile(fpVersionFile, args.version);

smoke/esm/it.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ gthis()["FP_DEBUG"]="*"
7474
gthis()["FP_VERSION"]=getVersion()
7575
EOF
7676

77-
pnpm install
77+
pnpm install --prefer-offline --package-import-method=hardlink
7878
pnpm run test
7979
pnpm exec deno run --allow-read --allow-write --allow-env --allow-import deno-test.ts
8080

smoke/npm/it.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ cp $projectRoot/dist/npmrc-smoke .npmrc
1010
rm -rf pnpm-lock.yaml node_modules
1111
cp package-template.json package.json
1212
# pnpm install
13-
pnpm add @fireproof/core@$(cat $projectRoot/dist/fp-version.txt)
14-
pnpm add @fireproof/core-runtime@$(cat $projectRoot/dist/fp-version.txt)
13+
pnpm add @fireproof/core@$(cat $projectRoot/dist/fp-version.txt) --prefer-offline --package-import-method=hardlink
14+
pnpm add @fireproof/core-runtime@$(cat $projectRoot/dist/fp-version.txt) --prefer-offline --package-import-method=hardlink
1515
cat package.json
1616
npx tsx ./node-test.ts
1717
command -v deno && \

smoke/react/it.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ cp package-template.json package.json
1919
#env | sort > $projectRoot/dist/smoke.react.env
2020
unset npm_config_registry
2121
# pnpm install
22-
pnpm install use-fireproof@$(cat $projectRoot/dist/fp-version.txt)
22+
pnpm install use-fireproof@$(cat $projectRoot/dist/fp-version.txt) --prefer-offline --package-import-method=hardlink
2323
pnpm why react
2424
cat package.json
2525
# pnpm install -f "file://$smokeDir/../../dist/fireproof-core/fireproof-core-*.tgz"

0 commit comments

Comments
 (0)