Skip to content

Commit 8d906e9

Browse files
committed
Add smoke tests to CI
1 parent 0993c01 commit 8d906e9

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,33 @@ jobs:
8686
- name: Build src
8787
run: npx hereby build-src
8888

89+
smoke:
90+
runs-on: ubuntu-latest
91+
92+
steps:
93+
- uses: actions/checkout@v3
94+
- uses: actions/setup-node@v3
95+
with:
96+
node-version: "*"
97+
check-latest: true
98+
- run: npm ci
99+
100+
- run: npx hereby lkg
101+
- run: |
102+
npm pack
103+
mv typescript*.tgz typescript.tgz
104+
echo "PACKAGE=$PWD/typescript.tgz" >> $GITHUB_ENV
105+
106+
- name: Smoke test
107+
run: |
108+
cd "$(mktemp -d)"
109+
npm init --yes
110+
npm install $PACKAGE
111+
112+
npx tsc --version
113+
echo '{"seq": 1, "command": "status"}' | npx tsserver
114+
node -e 'console.log(require("typescript").version)'
115+
node -e 'console.log(require("typescript/lib/tsserverlibrary").version)'
89116
90117
misc:
91118
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)