From 116f79aee0bfe229e88145228862b88dae3f1adf Mon Sep 17 00:00:00 2001 From: Crafterzman Date: Fri, 23 Apr 2021 10:30:35 -0700 Subject: [PATCH] Setup NodeJS CI --- .github/workflows/NodeCI.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/NodeCI.yml diff --git a/.github/workflows/NodeCI.yml b/.github/workflows/NodeCI.yml new file mode 100644 index 000000000..09b1d56a9 --- /dev/null +++ b/.github/workflows/NodeCI.yml @@ -0,0 +1,26 @@ +name: Node.js CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x, 14.x, 15.x] + # Add/Remove versions as needed + + 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 ci + - run: npm run build --if-present