Skip to content

Commit c441ca7

Browse files
committed
test before publishing
1 parent b8bba34 commit c441ca7

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,35 @@ permissions:
1313
contents: write
1414

1515
jobs:
16+
test:
17+
name: Test
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v5
23+
24+
- name: Setup Node
25+
uses: actions/setup-node@v4
26+
with:
27+
cache: npm
28+
29+
- name: Install dependencies
30+
run: npm ci
31+
32+
- name: Compile
33+
run: npx vsce package
34+
env:
35+
LOCALSTACK_WEB_AUTH_REDIRECT: https://app.localstack.cloud/redirect
36+
NODE_ENV: ci
37+
38+
- name: Test
39+
run: xvfb-run -a npx vscode-test
40+
1641
build:
1742
name: Build
1843
runs-on: ubuntu-latest
44+
needs: test
1945
outputs:
2046
version: ${{ steps.version.outputs.version }}
2147

0 commit comments

Comments
 (0)