Skip to content

Commit 1acdf2f

Browse files
committed
Fix workdir
1 parent 3f05dbe commit 1acdf2f

5 files changed

Lines changed: 185 additions & 178 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff 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
@@ -72,7 +72,7 @@ jobs:
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:

.github/workflows/example_vscode_build.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Example - Large Scale VSCode Build
1+
name: Example - VSCode Build
22

33
on:
44
workflow_dispatch:
@@ -70,7 +70,6 @@ jobs:
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
@@ -94,7 +93,6 @@ jobs:
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

0 commit comments

Comments
 (0)