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