diff --git a/.github/workflows/run_test.yml b/.github/workflows/run_test.yml new file mode 100644 index 000000000..3b2e4d79a --- /dev/null +++ b/.github/workflows/run_test.yml @@ -0,0 +1,29 @@ +name: Node.js CI + +on: + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: macos-latest + + strategy: + matrix: + node-version: [12.x] + + steps: + - name: Clone and checkout branch + uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: Install dependencies + run: npm install + - run: npm run build --if-present + - name: Run the test + run: npm test + env: + CI: true