File tree Expand file tree Collapse file tree 3 files changed +86
-0
lines changed
Expand file tree Collapse file tree 3 files changed +86
-0
lines changed Original file line number Diff line number Diff line change 1+ github : [WebFreak001]
2+ patreon : WebFreak
Original file line number Diff line number Diff line change 1+ name : Release vsix to OpenVSX and VSCode marketplace
2+ on :
3+ release :
4+ types : [published]
5+
6+ jobs :
7+ release :
8+ name : " Release"
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v5
12+ with :
13+ submodules : true
14+
15+ - name : Set Node.js 10.x
16+ uses : actions/setup-node@v5
17+ with :
18+ version : 14.x
19+
20+ - name : npm install
21+ run : npm install
22+
23+ - name : typescript
24+ run : npx tsc
25+
26+ - name : Publish to Open VSX Registry
27+ uses : HaaLeo/publish-vscode-extension@v2
28+ id : publishToOpenVSX
29+ with :
30+ pat : ${{ secrets.OPEN_VSX_TOKEN }}
31+ - name : Publish to Visual Studio Marketplace
32+ uses : HaaLeo/publish-vscode-extension@v2
33+ with :
34+ pat : ${{ secrets.VS_MARKETPLACE_TOKEN }}
35+ registryUrl : https://marketplace.visualstudio.com
36+ extensionFile : ${{ steps.publishToOpenVSX.outputs.vsixPath }}
37+ packagePath : ' '
38+ - name : Upload
39+ uses : djn24/add-asset-to-release@v1
40+ with :
41+ token : ${{secrets.GITHUB_TOKEN}}
42+ path : ${{ steps.publishToOpenVSX.outputs.vsixPath }}
Original file line number Diff line number Diff line change 1+ name : Test ci folder
2+ on : [push]
3+
4+ jobs :
5+ npm_test :
6+ name : Run npm tests
7+ runs-on : ${{ matrix.os }}
8+ strategy :
9+ matrix :
10+ os : [ubuntu-latest, windows-latest]
11+ steps :
12+ - uses : actions/checkout@v4
13+
14+ - name : Install D compiler
15+ uses : dlang-community/setup-dlang@v2
16+ with :
17+ compiler : dmd
18+
19+ - name : Start xvfb
20+ if : startsWith(matrix.os, 'ubuntu')
21+ run : /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
22+
23+ - name : Set Node.js
24+ uses : actions/setup-node@v4
25+ with :
26+ node-version : lts/*
27+
28+ - name : npm install
29+ run : npm install
30+
31+ - name : typescript
32+ run : npx tsc
33+
34+ - name : npm test
35+ env :
36+ CODE_VERSION : ' '
37+ DISPLAY : ' :99.0'
38+ run : npm test
39+
40+ - name : test grammar
41+ if : startsWith(matrix.os, 'ubuntu')
42+ run : npm run grammar
You can’t perform that action at this time.
0 commit comments