From d9c3b85f473c9c1752250ca99ee44a515aaffd75 Mon Sep 17 00:00:00 2001 From: eggplants Date: Wed, 26 Jan 2022 21:14:23 +0900 Subject: [PATCH] add: test and lint workflows --- .github/workflows/lint.yml | 12 ++++++++++++ .github/workflows/test.yml | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 .github/workflows/lint.yml create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..5f71800 --- /dev/null +++ b/.github/workflows/lint.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..8c29e09 --- /dev/null +++ b/.github/workflows/test.yml @@ -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