Skip to content

Commit c866b0e

Browse files
committed
Update CI workflow and add new Go command in tests
- Removed the setup-node step in the CI workflow and replaced npm commands with Bun commands for package management. - Updated the .gitignore file to include new directories for build artifacts. - Added a new command to the test suite to run 'go mod tidy', ensuring Go module dependencies are properly managed. These changes enhance the development workflow and maintain consistency in package management.
1 parent 23887ea commit c866b0e

4 files changed

Lines changed: 9 additions & 6 deletions

File tree

.cursorignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.manual/

.github/workflows/ci.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13-
- uses: actions/setup-node@v4
14-
with:
15-
node-version: 22
16-
cache: npm
1713
- uses: oven-sh/setup-bun@v2
1814
- uses: actions/setup-go@v5
1915
with:
@@ -22,5 +18,5 @@ jobs:
2218
with:
2319
php-version: "8.3"
2420
tools: composer
25-
- run: npm ci
26-
- run: npm run verify
21+
- run: bun install --frozen-lockfile
22+
- run: bun run verify

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ examples/node_modules/
33
generated/
44
*.log
55
.DS_Store
6+
.dist/
7+
.manual/

tests/parity.templ.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ describe.skipIf(!available)("templ runtime parity", () => {
6767
cwd: GENERATED,
6868
stdio: ["ignore", "ignore", "inherit"],
6969
});
70+
execFileSync("go", ["mod", "tidy"], {
71+
cwd: GENERATED,
72+
stdio: ["ignore", "ignore", "inherit"],
73+
});
7074
const stdout = execFileSync("go", ["run", "./cmd/parity"], {
7175
cwd: GENERATED,
7276
input: JSON.stringify(

0 commit comments

Comments
 (0)