From 0dea34f93f9c89ec9de23b0c6e525368533f2bed Mon Sep 17 00:00:00 2001 From: Martin Heidegger Date: Fri, 6 Nov 2020 13:28:28 +0900 Subject: [PATCH] Adding github action to test code --- .github/workflows/test-node.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/test-node.yml diff --git a/.github/workflows/test-node.yml b/.github/workflows/test-node.yml new file mode 100644 index 0000000..454bde9 --- /dev/null +++ b/.github/workflows/test-node.yml @@ -0,0 +1,24 @@ +name: Build Status + +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + build: + strategy: + matrix: + node-version: [10.x, 12.x, 14.x] + os: [ubuntu-16.04, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm test