-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (59 loc) · 1.67 KB
/
ci-tests.yml
File metadata and controls
76 lines (59 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: "CI - Tests"
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
concurrency:
group: ci-tests-${{ github.ref }}
cancel-in-progress: true
jobs:
host:
name: host
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: host
- name: Build host crate
run: cargo build --manifest-path host/Cargo.toml
- name: Run host tests
run: cargo test --manifest-path host/Cargo.toml
spore:
name: spore
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v6
with:
python-version: "3.14"
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.95
- name: Install spore CLI
run: uv tool install spore-lang==0.0.3
- name: Format Spore files
run: spore format --check
- name: Check Spore files
run: |
find src/basic_cli -name '*.sp' -type f | sort | xargs -n 1 spore check
spore check examples/hello.sp
spore check examples/hello-app/src/main.sp
- name: Build Spore platform API files
run: |
find src/basic_cli -name '*.sp' -type f | sort | xargs -n 1 spore build
- name: Run Spore examples
run: |
spore run examples/hello.sp
(
cd examples/hello-app
echo "✓ Running project-mode example (default entry)"
spore run src/main.sp
)
- name: Run Spore spec tests
run: spore test