-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.09 KB
/
test.yml
File metadata and controls
48 lines (41 loc) · 1.09 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
name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Verify repository structure
run: |
echo "Current directory: $(pwd)"
echo "Repository contents:"
ls -la
echo "Bin directory contents:"
ls -la bin/
- name: Make test script executable
run: chmod +x bin/gitstack_test.sh
- name: Run gitstack tests
working-directory: .
run: |
echo "🧪 Running gitstack tests..."
echo "Working directory: $(pwd)"
echo "Running from: $(realpath bin/gitstack_test.sh)"
if ./bin/gitstack_test.sh; then
echo "✅ All tests passed!"
else
echo "❌ Tests failed!"
exit 1
fi
- name: Test summary
if: always()
run: |
if [ $? -eq 0 ]; then
echo "🎉 gitstack is working correctly!"
else
echo "🚨 gitstack has issues that need attention"
fi