Update pr-check.yml #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pr-check | |
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
pr-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node.js 14 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 14.x | |
- name: Lint and build | |
run: | | |
git branch | |
git log -n 3 | |
pushd vscode-extension | |
npm install | |
npm run lint | |
npm run compile | |
if [ $? -ne 0 ]; then | |
exit 1 | |
fi | |
popd |