From f982942d7afd3fc7d11d4eff3b08a4934b649a79 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 27 Jan 2022 04:59:07 +0000 Subject: [PATCH] Updating GHES workflows --- ci/node.js.yml | 31 +++++++++++++++++++++++++++ ci/properties/node.js.properties.json | 6 ++++++ icons/nodejs.svg | 1 + 3 files changed, 38 insertions(+) create mode 100644 ci/node.js.yml create mode 100644 ci/properties/node.js.properties.json create mode 100644 icons/nodejs.svg diff --git a/ci/node.js.yml b/ci/node.js.yml new file mode 100644 index 0000000..8d1b9c7 --- /dev/null +++ b/ci/node.js.yml @@ -0,0 +1,31 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x, 14.x, 16.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm run build --if-present + - run: npm test diff --git a/ci/properties/node.js.properties.json b/ci/properties/node.js.properties.json new file mode 100644 index 0000000..7f68d88 --- /dev/null +++ b/ci/properties/node.js.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Node.js", + "description": "Build and test a Node.js project with npm.", + "iconName": "nodejs", + "categories": ["Continuous integration", "JavaScript", "npm", "React", "Angular", "Vue"] +} diff --git a/icons/nodejs.svg b/icons/nodejs.svg new file mode 100644 index 0000000..493f39d --- /dev/null +++ b/icons/nodejs.svg @@ -0,0 +1 @@ + \ No newline at end of file