From 9a62f8647a20629667e8ecadb81f07694affb574 Mon Sep 17 00:00:00 2001 From: hustcc Date: Fri, 7 Aug 2020 17:02:47 +0800 Subject: [PATCH] test: add github action --- __tests__/.github/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 __tests__/.github/workflows/ci.yml diff --git a/__tests__/.github/workflows/ci.yml b/__tests__/.github/workflows/ci.yml new file mode 100644 index 0000000..eec37de --- /dev/null +++ b/__tests__/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +name: Build +# This workflow is triggered on pushes to the repository. +on: [push] + +jobs: + build: + # Job name is Greeting + name: Build + # This job runs on Linux + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Use Node.js 12 + uses: actions/setup-node@v1 + with: + node-version: 12.x + - name: install + run: npm i + - name: lint + run: npm run lint + - name: test + run: npm run test \ No newline at end of file