From 5eeb68af227f3e6816f9b7562d1fdeb6791a4bef Mon Sep 17 00:00:00 2001 From: jianglin-wu Date: Thu, 5 Dec 2019 18:11:49 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=BB=86=E5=8C=96=20actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflows/{npmpublish.yml => publish.yml} | 5 +---- .github/workflows/test.yml | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 4 deletions(-) rename .github/workflows/{npmpublish.yml => publish.yml} (79%) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/publish.yml similarity index 79% rename from .github/workflows/npmpublish.yml rename to .github/workflows/publish.yml index 8b7a72b..d44c029 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/publish.yml @@ -1,12 +1,9 @@ -name: Node.js Package +name: Node.js Publish on: push: branches: - master - pull_request: - branches: - - master jobs: build: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..df718e1 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,17 @@ +name: Node.js Test + +on: + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 12 + - run: npm install + - run: npm run test