From d75650c17eb1b114d42607ec7e3c73d63fd11f11 Mon Sep 17 00:00:00 2001 From: Stephen Edgar Date: Sat, 4 Jan 2020 15:43:28 +1100 Subject: [PATCH 1/2] Node.js GitHub Action Workflow --- nodejs.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 nodejs.yml diff --git a/nodejs.yml b/nodejs.yml new file mode 100644 index 00000000..5adc14e5 --- /dev/null +++ b/nodejs.yml @@ -0,0 +1,26 @@ +name: Node CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [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 From e56a41893ff141ff60b2b1fee806118004e6761c Mon Sep 17 00:00:00 2001 From: Stephen Edgar Date: Sat, 4 Jan 2020 15:46:26 +1100 Subject: [PATCH 2/2] Use `npm run lint-js` --- nodejs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodejs.yml b/nodejs.yml index 5adc14e5..6404a9f5 100644 --- a/nodejs.yml +++ b/nodejs.yml @@ -20,7 +20,7 @@ jobs: - name: npm install, build, and test run: | npm ci - npm run build --if-present + npm run lint-js npm test env: CI: true