From 52ef5e96f543ca242a9e1e8f2917492eb3d3fb95 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Tue, 8 Dec 2020 15:03:56 +0100 Subject: add github actions --- .github/workflows/nodejs.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/nodejs.yml (limited to '.github/workflows/nodejs.yml') diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 00000000..d7a69c8e --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,38 @@ +name: Node.js build and test + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + workflow_dispatch: + +defaults: + run: + working-directory: webui + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x, 14.x] + + steps: + - name: Setup Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: Check out code + uses: actions/checkout@v2 + + - name: Install + run: make install + + - name: Build + run: make build + + - name: Test + run: make test -- cgit