From 605365efe7b7ce9518b59a171bdd8a246b367197 Mon Sep 17 00:00:00 2001 From: Kohei Ueno Date: Tue, 17 May 2022 16:24:18 +0900 Subject: [PATCH] chore: add github workflows (#3) --- .github/workflows/code-check.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/code-check.yml diff --git a/.github/workflows/code-check.yml b/.github/workflows/code-check.yml new file mode 100644 index 0000000..118a3ce --- /dev/null +++ b/.github/workflows/code-check.yml @@ -0,0 +1,28 @@ +name: Check code health + +on: [pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [16.x] + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - name: Install dependencies + run: npm ci + - name: Run lint + run: npm run lint + - name: Run format + run: npm run format + - name: Run type check + run: npm run type-check + - name: Run test + run: npm run test