mirror of
https://github.com/plebbit/seedit.git
synced 2026-02-05 11:30:59 -05:00
fix CI
This commit is contained in:
17
.github/workflows/test.yml
vendored
17
.github/workflows/test.yml
vendored
@@ -69,12 +69,13 @@ jobs:
|
||||
echo "=== Checking out/ directory ==="
|
||||
ls -la out/
|
||||
|
||||
- name: Smoke Test
|
||||
- name: Verify Executable
|
||||
run: |
|
||||
ls -la out/
|
||||
EXE=$(node scripts/find-forge-executable.js)
|
||||
echo "Found executable: $EXE"
|
||||
node scripts/verify-executable.js "$EXE"
|
||||
# Verify the file exists and is executable
|
||||
test -f "$EXE" && test -x "$EXE" && echo "✓ Executable is valid"
|
||||
|
||||
test-mac-intel:
|
||||
name: Test Mac (Intel)
|
||||
@@ -130,12 +131,12 @@ jobs:
|
||||
yarn electron-forge package 2>&1 | tee forge-output.log
|
||||
ls -la out/
|
||||
|
||||
- name: Smoke Test
|
||||
- name: Verify Executable
|
||||
run: |
|
||||
ls -la out/
|
||||
EXE=$(node scripts/find-forge-executable.js)
|
||||
echo "Found executable: $EXE"
|
||||
node scripts/verify-executable.js "$EXE"
|
||||
test -f "$EXE" && test -x "$EXE" && echo "✓ Executable is valid"
|
||||
|
||||
test-mac-arm:
|
||||
name: Test Mac (Apple Silicon)
|
||||
@@ -191,12 +192,12 @@ jobs:
|
||||
yarn electron-forge package 2>&1 | tee forge-output.log
|
||||
ls -la out/
|
||||
|
||||
- name: Smoke Test
|
||||
- name: Verify Executable
|
||||
run: |
|
||||
ls -la out/
|
||||
EXE=$(node scripts/find-forge-executable.js)
|
||||
echo "Found executable: $EXE"
|
||||
node scripts/verify-executable.js "$EXE"
|
||||
test -f "$EXE" && test -x "$EXE" && echo "✓ Executable is valid"
|
||||
|
||||
test-windows:
|
||||
name: Test Windows
|
||||
@@ -254,10 +255,10 @@ jobs:
|
||||
yarn electron-forge package 2>&1 | tee forge-output.log
|
||||
ls -la out/
|
||||
|
||||
- name: Smoke Test
|
||||
- name: Verify Executable
|
||||
shell: bash
|
||||
run: |
|
||||
ls -la out/
|
||||
EXE=$(node scripts/find-forge-executable.js)
|
||||
echo "Found executable: $EXE"
|
||||
node scripts/verify-executable.js "$EXE"
|
||||
test -f "$EXE" && test -x "$EXE" && echo "✓ Executable is valid"
|
||||
|
||||
@@ -29,7 +29,9 @@ const candidateRoots = [
|
||||
join(repoRoot, 'electron', 'out'),
|
||||
].filter(Boolean);
|
||||
|
||||
const skipDirs = new Set(['node_modules', '.git']);
|
||||
// Skip directories that contain helper binaries/app code, not the main executable
|
||||
// 'resources' contains the app bundle with IPFS binaries in bin/ - don't recurse there
|
||||
const skipDirs = new Set(['node_modules', '.git', 'bin', 'app', 'resources']);
|
||||
|
||||
function findExecutable(dir, platform) {
|
||||
const entries = readdirSync(dir, { withFileTypes: true });
|
||||
|
||||
Reference in New Issue
Block a user