Skip to content

Commit

Permalink
Add smoke tests to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Nov 9, 2022
1 parent 19091ab commit 6e7c9b1
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,33 @@ jobs:
- name: Build src
run: npx hereby build-src

smoke:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "*"
check-latest: true
- run: npm ci

- run: npx hereby lkg
- run: |
npm pack
mv typescript*.tgz typescript.tgz
echo "PACKAGE=$PWD/typescript.tgz" >> $GITHUB_ENV
- name: Smoke test
run: |
cd "$(mktemp -d)"
npm init --yes
npm install $PACKAGE
npx tsc --version
echo '{"seq": 1, "command": "status"}' | npx tsserver
node -e 'console.log(require("typescript").version)'
node -e 'console.log(require("typescript/lib/tsserverlibrary").version)'
misc:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 6e7c9b1

Please sign in to comment.