1- name : Test Workflow
2-
3- on :
4- # Allows manual trigger from Actions tab
5- workflow_dispatch :
6- # For testing on pull requests to develop branch
7- pull_request :
8- branches : [ develop ]
9- types : [opened, synchronize]
10-
11- jobs :
12- test :
13- runs-on : ubuntu-latest
14- steps :
15- - uses : actions/checkout@v3
16-
17- - name : Setup Node.js
18- uses : actions/setup-node@v3
19- with :
20- node-version : ' 18 '
21- cache : ' npm'
22-
23- - name : Install dependencies
24- run : npm ci
25-
26- # - name: Run tests
27- # run: |
28- # echo "Running tests..."
29- # npm run test
30-
31- - name : Check build
32- run : |
33- echo "Checking build..."
34- npm run build
35-
36- # Test changelog generation
37- - name : Test changelog
38- run : |
39- echo "Testing changelog generation..."
40- npm run changelog
41-
42- # - name: Test commit lint
43- # run: |
44- # echo "Testing last commit message..."
45- # echo "$(git log -1 --pretty=%B)" | npx commitlint
46-
47- - name : Status Check
48- run : |
49- echo "All tests completed successfully!"
50-
51- - name : Debug
52- if : ${{ failure() }}
53- run : |
54- echo "Debug information:"
55- env
56- ls -la
57-
58- - name : Check Status
59- run : |
60- if [ $? -eq 0 ]; then
61- echo "::set-output name=status::success"
62- else
63- echo "::set-output name=status::failure"
64- exit 1
1+ name : Test Workflow
2+
3+ on :
4+ # Allows manual trigger from Actions tab
5+ workflow_dispatch :
6+ # For testing on pull requests to develop branch
7+ pull_request :
8+ branches : [ develop ]
9+ types : [opened, synchronize]
10+
11+ jobs :
12+ test :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v3
16+
17+ - name : Setup Node.js
18+ uses : actions/setup-node@v3
19+ with :
20+ node-version : ' 22 '
21+ cache : ' npm'
22+
23+ - name : Install dependencies
24+ run : npm ci
25+
26+ # - name: Run tests
27+ # run: |
28+ # echo "Running tests..."
29+ # npm run test
30+
31+ - name : Check build
32+ run : |
33+ echo "Checking build..."
34+ npm run build
35+
36+ # Test changelog generation
37+ - name : Test changelog
38+ run : |
39+ echo "Testing changelog generation..."
40+ npm run changelog
41+
42+ # - name: Test commit lint
43+ # run: |
44+ # echo "Testing last commit message..."
45+ # echo "$(git log -1 --pretty=%B)" | npx commitlint
46+
47+ - name : Status Check
48+ run : |
49+ echo "All tests completed successfully!"
50+
51+ - name : Debug
52+ if : ${{ failure() }}
53+ run : |
54+ echo "Debug information:"
55+ env
56+ ls -la
57+
58+ - name : Check Status
59+ run : |
60+ if [ $? -eq 0 ]; then
61+ echo "::set-output name=status::success"
62+ else
63+ echo "::set-output name=status::failure"
64+ exit 1
6565 fi
0 commit comments