From 102cca36e519efc60b04686a4e0cbcbaefa66294 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Sat, 19 Oct 2019 16:03:01 +0200 Subject: [PATCH] Start enabling Github Actions --- .github/workflows/nodejs.yml | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 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 0000000000..974f40f3e4 --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,41 @@ +name: Node CI + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [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 + env: + CI: true + lint: + needs: build + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [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 run lint + run: | + npm run lint