Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ jobs:
- name: Run tests
run: dotnet test ${{ env.SOLUTION }} --no-build --verbosity normal --configuration ${{ env.CONFIGURATION }}

validate-workflows:
name: Validate Workflows
uses: kjldev/.github/.github/workflows/validate-workflows.yml@main

changeset-check:
name: Changeset Check
uses: kjldev/.github/.github/workflows/changeset-check.yml@main
Expand All @@ -92,6 +96,7 @@ jobs:
- format-check
- build-and-test
- build-and-test-samples
- validate-workflows
- changeset-check

steps:
Expand All @@ -100,6 +105,7 @@ jobs:
FORMAT_CHECK_RESULT: ${{ needs['format-check'].result }}
BUILD_AND_TEST_RESULT: ${{ needs['build-and-test'].result }}
BUILD_AND_TEST_SAMPLES_RESULT: ${{ needs['build-and-test-samples'].result }}
VALIDATE_WORKFLOWS_RESULT: ${{ needs['validate-workflows'].result }}
CHANGESET_CHECK_RESULT: ${{ needs['changeset-check'].result }}
shell: bash
run: |
Expand All @@ -109,6 +115,7 @@ jobs:
["Format Check"]="${FORMAT_CHECK_RESULT}"
["Build and Test"]="${BUILD_AND_TEST_RESULT}"
["Build and Test Samples"]="${BUILD_AND_TEST_SAMPLES_RESULT}"
["Validate Workflows"]="${VALIDATE_WORKFLOWS_RESULT}"
["Changeset Check"]="${CHANGESET_CHECK_RESULT}"
)

Expand Down
11 changes: 11 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
# Validate GitHub Actions workflow files before commit.
# Install actionlint: scoop install actionlint (or: go install github.com/rhysd/actionlint/cmd/actionlint@latest)

if command -v actionlint >/dev/null 2>&1; then
echo "Running actionlint..."
actionlint
else
echo "⚠️ actionlint not found — workflow validation skipped."
echo " Install: scoop install actionlint (or: go install github.com/rhysd/actionlint/cmd/actionlint@latest)"
fi
11 changes: 11 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
# Validate GitHub Actions workflow files before push.
# Install actionlint: scoop install actionlint (or: go install github.com/rhysd/actionlint/cmd/actionlint@latest)

if command -v actionlint >/dev/null 2>&1; then
echo "Running actionlint..."
actionlint
else
echo "⚠️ actionlint not found — workflow validation skipped."
echo " Install: scoop install actionlint (or: go install github.com/rhysd/actionlint/cmd/actionlint@latest)"
fi
3 changes: 3 additions & 0 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"readme": "README.md",
"scripts": {
"changeset": "changeset",
"version-packages": "changeset version && bun .build/update-version.ts"
"version-packages": "changeset version && bun .build/update-version.ts",
"prepare": "husky"
},
"repository": {
"type": "git",
Expand All @@ -19,6 +20,7 @@
"homepage": "https://github.com/kjldev/purview-telemetry-sourcegenerator#readme",
"devDependencies": {
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.12"
"@changesets/cli": "^2.27.12",
"husky": "^9.1.7"
}
}
Loading