add: test and lint workflows

This commit is contained in:
eggplants 2022-01-26 21:14:23 +09:00
parent fcf91e8265
commit d9c3b85f47
No known key found for this signature in database
GPG key ID: E84F494AD6539CE2
2 changed files with 24 additions and 0 deletions

12
.github/workflows/lint.yml vendored Normal file
View file

@ -0,0 +1,12 @@
name: Lint
on: [pull_request, push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Prettify code
uses: creyD/prettier_action@v4.2
with:
prettier_options: --check src

12
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,12 @@
name: Test
on: [pull_request, push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
npm install
- run: |
npm run test