From a0202c0f591efc3a5f50c26178bac2bd433326a8 Mon Sep 17 00:00:00 2001 From: Woody Date: Wed, 20 Mar 2024 12:58:02 +0100 Subject: [PATCH] Create node.js.yml --- .github/workflows/node.js.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..22fdfc6 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,27 @@ +name: Node.js CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + command: ['npm build linux', 'npm build windows', 'npm build mac'] + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + - run: npm ci + - name: Build + run: ${{ matrix.command }}