File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,23 +25,23 @@ jobs:
2525 - name : Run linter
2626 run : npm run lint
2727
28- # test:
29- # name: Test
30- # runs-on: ubuntu-latest
31- # steps:
32- # - uses: actions/checkout@v4
28+ test :
29+ name : Test
30+ runs-on : ubuntu-latest
31+ steps :
32+ - uses : actions/checkout@v4
3333
34- # - name: Setup Node.js
35- # uses: actions/setup-node@v4
36- # with:
37- # node-version: '20'
38- # cache: 'npm'
34+ - name : Setup Node.js
35+ uses : actions/setup-node@v4
36+ with :
37+ node-version : ' 20'
38+ cache : ' npm'
3939
40- # - name: Install dependencies
41- # run: npm ci
40+ - name : Install dependencies
41+ run : npm ci
4242
43- # - name: Run tests
44- # run: npm test
43+ - name : Run tests
44+ run : npm test
4545
4646 build :
4747 name : Build
7272
7373 release :
7474 name : Release
75- needs : [lint, build]
75+ needs : [lint, test, build]
7676 runs-on : ubuntu-latest
7777 if : github.event_name == 'push' && github.ref == 'refs/heads/main'
7878 permissions :
Original file line number Diff line number Diff line change 1- name : Example - Large Scale VSCode Build
1+ name : Example - VSCode Build
22
33on :
44 workflow_dispatch :
7070 # Simulate failure if requested
7171 if [ "${{ github.event.inputs.force_failure_step }}" = "setup" ] && [ "${{ github.run_attempt }}" = "1" ]; then
7272 echo "💥 SIMULATED FAILURE: Setup failing on first attempt (as requested)"
73- echo "🔄 On retry, this step will be skipped entirely due to checkpointing!"
7473 exit 1
7574 fi
7675
9493 # Simulate failure if requested
9594 if [ "${{ github.event.inputs.force_failure_step }}" = "build" ] && [ "${{ github.run_attempt }}" = "1" ]; then
9695 echo "💥 SIMULATED FAILURE: Build failing on first attempt (as requested)"
97- echo "🔄 On retry, setup steps will be skipped and build will retry!"
9896 exit 1
9997 fi
10098
@@ -119,7 +117,6 @@ jobs:
119117 # Simulate failure if requested
120118 if [ "${{ github.event.inputs.force_failure_step }}" = "test" ] && [ "${{ github.run_attempt }}" = "1" ]; then
121119 echo "💥 SIMULATED FAILURE: Tests failing on first attempt (as requested)"
122- echo "🔄 On retry, all previous steps will be skipped and only tests will re-run!"
123120 exit 1
124121 fi
125122
You can’t perform that action at this time.
0 commit comments