From 7ce11b9ddb1da9d48800043dff33bc4da22b668a Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Wed, 15 Feb 2023 20:55:25 +0900 Subject: [PATCH] ci: add github actions for linting & type-checking --- .github/workflows/test.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..a34d3fa --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,33 @@ +name: Test + +on: + push: + branches: [main] + pull_request: + +jobs: + test: + name: Test + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version-file: '.nvmrc' + + - name: Setup pnpm + uses: pnpm/action-setup@v2.2.2 + with: + version: 7 + run_install: true + + - name: Type check + run: pnpm build + + - name: Lint + run: pnpm lint