Skip to content

Commit e5b5607

Browse files
committed
Streamline CI workflow and clean up repository
- Simplify CI triggers to only master branch - Remove verbose example validation, keep simple check - Remove --verbose flags from test commands - Delete merged feature/industry-examples branch - Focus CI on essential quality checks: test, fmt, clippy, docs, security
1 parent b562263 commit e5b5607

File tree

1 file changed

+9
-47
lines changed

1 file changed

+9
-47
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: CI
22

33
on:
44
push:
5-
branches: [ main, master, develop ]
5+
branches: [ master ]
66
pull_request:
7-
branches: [ main, master ]
7+
branches: [ master ]
88

99
env:
1010
CARGO_TERM_COLOR: always
@@ -18,55 +18,17 @@ jobs:
1818
- uses: dtolnay/rust-toolchain@stable
1919
- uses: Swatinem/rust-cache@v2
2020
- name: Run tests
21-
run: cargo test --workspace --verbose
21+
run: cargo test --workspace
2222
- name: Run doctests
23-
run: cargo test --workspace --doc --verbose
23+
run: cargo test --workspace --doc
2424
- name: Validate examples
2525
run: |
26-
echo "Validating SIGMOS examples structure..."
27-
28-
# Check that examples directory exists and has files
29-
if [ ! -d "examples" ]; then
30-
echo "❌ Examples directory not found!"
31-
exit 1
32-
fi
33-
34-
# Count and list example files
35-
EXAMPLE_COUNT=$(find examples/ -name "*.sigmos" -type f | wc -l)
36-
echo "Found $EXAMPLE_COUNT example files:"
37-
find examples/ -name "*.sigmos" -type f | head -10
38-
39-
# Ensure we have examples
40-
if [ "$EXAMPLE_COUNT" -eq 0 ]; then
41-
echo "❌ No example files found!"
42-
exit 1
26+
if [ -d "examples" ]; then
27+
EXAMPLE_COUNT=$(find examples/ -name "*.sigmos" -type f | wc -l)
28+
echo "✓ Found $EXAMPLE_COUNT SIGMOS example files"
29+
else
30+
echo "No examples directory found"
4331
fi
44-
45-
# Basic structure validation for each example
46-
for file in $(find examples/ -name "*.sigmos" -type f); do
47-
echo "Checking structure: $file"
48-
49-
# Check file is not empty
50-
if [ ! -s "$file" ]; then
51-
echo "❌ Empty file: $file"
52-
exit 1
53-
fi
54-
55-
# Check file contains basic SIGMOS structure
56-
if ! grep -q "spec " "$file"; then
57-
echo "❌ Missing spec declaration in: $file"
58-
exit 1
59-
fi
60-
61-
if ! grep -q "description:" "$file"; then
62-
echo "❌ Missing description in: $file"
63-
exit 1
64-
fi
65-
66-
echo "✓ Structure valid: $file"
67-
done
68-
69-
echo "✓ All $EXAMPLE_COUNT examples have valid structure!"
7032
7133
fmt:
7234
name: Rustfmt

0 commit comments

Comments
 (0)