Skip to content

Commit

Permalink
chore: add github workflows (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
cola119 authored May 17, 2022
1 parent 39e4885 commit 605365e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 605365e

Please sign in to comment.