From c2ee51ef6587e91e05211a5d0d805e5a1e439d8a Mon Sep 17 00:00:00 2001 From: Shimon Tolts Date: Mon, 4 Nov 2019 13:24:45 -0800 Subject: [PATCH] Update nodejs.yml --- .github/workflows/nodejs.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/nodejs.yml diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 0000000..f3a5201 --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,28 @@ +name: Node CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [8.x, 10.x, 12.x] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install, build, and test + run: | + npm ci + npm run build --if-present + npm test + env: + CI: true + - name: Build the Docker image + run: docker build . --file Dockerfile --tag icecream