Skip to content

Commit abea16e

Browse files
zrr1999Copilot
andcommitted
fix: run hello-app CI from project directory
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ed3b206 commit abea16e

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

.github/workflows/ci-tests.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,11 @@ jobs:
8484
find src/basic_cli -name '*.sp' -type f | sort | xargs -n 1 _spore/target/release/spore check
8585
# Project-mode examples: validate with spore check
8686
if [ -d examples/hello-app ]; then
87-
echo "✓ Checking project-mode example examples/hello-app/src/main.sp"
88-
_spore/target/release/spore check examples/hello-app/src/main.sp
87+
(
88+
cd examples/hello-app
89+
echo "✓ Checking project-mode example src/main.sp"
90+
../../_spore/target/release/spore check src/main.sp
91+
)
8992
fi
9093
# Check tests if they exist
9194
if [ -d tests ]; then
@@ -102,8 +105,11 @@ jobs:
102105
find src/basic_cli -name '*.sp' -type f | sort | xargs -n 1 _spore/target/release/spore build
103106
# Project-mode examples: validate with spore build
104107
if [ -d examples/hello-app ]; then
105-
echo "✓ Building project-mode example examples/hello-app/src/main.sp"
106-
_spore/target/release/spore build examples/hello-app/src/main.sp
108+
(
109+
cd examples/hello-app
110+
echo "✓ Building project-mode example src/main.sp"
111+
../../_spore/target/release/spore build src/main.sp
112+
)
107113
fi
108114
# Check tests if they exist
109115
if [ -d tests ]; then
@@ -116,8 +122,11 @@ jobs:
116122
- name: Run project-mode hello-app example
117123
run: |
118124
if [ -d examples/hello-app ]; then
119-
echo "✓ Running project-mode example examples/hello-app/src/main.sp"
120-
_spore/target/release/spore run examples/hello-app/src/main.sp
125+
(
126+
cd examples/hello-app
127+
echo "✓ Running project-mode example src/main.sp"
128+
../../_spore/target/release/spore run src/main.sp
129+
)
121130
fi
122131
123132
- name: Run Spore spec tests

0 commit comments

Comments
 (0)