From 87f0ed66c9bc9abdc7d32f1c9fc3668004549d8f Mon Sep 17 00:00:00 2001 From: owjs3901 Date: Tue, 24 Dec 2024 22:08:00 +0900 Subject: [PATCH] Add check pr action --- .github/workflows/check-pr.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/check-pr.yml diff --git a/.github/workflows/check-pr.yml b/.github/workflows/check-pr.yml new file mode 100644 index 0000000..fe0ecdd --- /dev/null +++ b/.github/workflows/check-pr.yml @@ -0,0 +1,28 @@ +name: Check Pull Request +on: + pull_request: + branches: + - main +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: 'pnpm' + registry-url: 'https://registry.npmjs.org' + + - uses: pnpm/action-setup@v4 + name: Install pnpm + with: + version: 9 + run_install: false + - run: pnpm i + - run: | + pnpm lint + pnpm test