Skip to content
Merged
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
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches: ["main", "dev"]
pull_request:
branches: ["main", "dev"]
workflow_dispatch:

jobs:
build-and-test:
Expand All @@ -25,9 +26,24 @@ jobs:
- name: Compile
run: npm run compile

- name: Run parser tests
- name: Test — parsers
run: npx ts-node --project server/tsconfig.json tests/test-parsers.ts

- name: Test — diagnostic codes
run: TS_NODE_PROJECT=tsconfig.base.json npx ts-node tests/test-diagnostic-codes.ts

- name: Test — version settings
run: TS_NODE_PROJECT=tsconfig.base.json npx ts-node tests/test-version-settings.ts

- name: Test — fix-it hints (code actions)
run: TS_NODE_PROJECT=tsconfig.base.json npx ts-node tests/test-fix-it-hints.ts

- name: Test — line directive utils
run: TS_NODE_PROJECT=tsconfig.base.json npx ts-node tests/test-line-directive.ts

- name: Test — new providers
run: TS_NODE_PROJECT=tsconfig.base.json npx ts-node tests/test-new-providers.ts

- name: Package VSIX
run: npx vsce package --no-dependencies -o extension.vsix

Expand Down
31 changes: 0 additions & 31 deletions .github/workflows/publish-ovsx.yml

This file was deleted.

38 changes: 33 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,23 @@ on:
- "v*"

jobs:
package:
release:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Verify tag is on main
run: |
git fetch origin main
if ! git merge-base --is-ancestor HEAD origin/main; then
echo "❌ Release tags must be created from the main branch."
exit 1
fi

- name: Setup Node.js
uses: actions/setup-node@v4
Expand All @@ -24,12 +34,30 @@ jobs:
run: npm ci

- name: Build VSIX
run: |
npm run package
npx vsce package
run: npx vsce package

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: "*.vsix"
generate_release_notes: true
generate_release_notes: true

- name: Publish to Open VSX
env:
OVSX_PAT: ${{ secrets.OVSX_PAT }}
run: |
if [ -z "$OVSX_PAT" ]; then
echo "⚠️ OVSX_PAT not set — skipping Open VSX publish"
else
npx ovsx publish *.vsix --pat "$OVSX_PAT"
fi

- name: Publish to VS Marketplace
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
run: |
if [ -z "$VSCE_PAT" ]; then
echo "⚠️ VSCE_PAT not set — skipping VS Marketplace publish"
else
npx vsce publish --pat "$VSCE_PAT"
fi
1 change: 1 addition & 0 deletions tests/test-new-providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ const fakeDiag: Diagnostic = {
range: Range.create(3, 10, 3, 19),
message: `Token 'UNDECLARED' is used but not declared with %token.`,
source: 'bison',
code: 'bison/undeclared-token',
};

const caParams: CodeActionParams = {
Expand Down
Loading