From 35a3cf31ab11775f681ea60118f44d190b16544a Mon Sep 17 00:00:00 2001 From: Yan Xu Date: Tue, 19 Nov 2024 13:01:48 +0800 Subject: [PATCH] Create GitHub Action for PR Check (#143) * Create pr-check.yml * Update pr-check.yml * Update pr-check.yml --- .github/workflows/pr-check.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/pr-check.yml diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml new file mode 100644 index 0000000..0b248d6 --- /dev/null +++ b/.github/workflows/pr-check.yml @@ -0,0 +1,29 @@ +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: | + pushd vscode-extension + npm install + npm run lint + npm run compile + if [ $? -ne 0 ]; then + exit 1 + fi + popd