From 1f2004a32a76830f47fdcfe84439f5fd57fe55ce Mon Sep 17 00:00:00 2001 From: Trivernis Date: Mon, 16 Nov 2020 10:44:47 +0100 Subject: [PATCH 1/4] Create node.js.yml --- .github/workflows/node.js.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..a0f5111 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,30 @@ +# This workflow will do a clean install of node dependencies, 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: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x, 14.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm -g gulp + - run: gulp build + - run: timeout 1s npm start From 457c221a414c2d55da852cf46980a7244ad8ebe6 Mon Sep 17 00:00:00 2001 From: Trivernis Date: Mon, 16 Nov 2020 10:46:17 +0100 Subject: [PATCH 2/4] Fix gulp install command --- .github/workflows/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index a0f5111..09bfebf 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -25,6 +25,6 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: npm ci - - run: npm -g gulp + - run: npm install -g gulp - run: gulp build - run: timeout 1s npm start From 2c3cd76a486f387ab86267023fc4d9d2e07089b5 Mon Sep 17 00:00:00 2001 From: Trivernis Date: Mon, 16 Nov 2020 10:48:06 +0100 Subject: [PATCH 3/4] Fix gulp task name --- .github/workflows/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 09bfebf..e0e20bc 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -26,5 +26,5 @@ jobs: node-version: ${{ matrix.node-version }} - run: npm ci - run: npm install -g gulp - - run: gulp build + - run: gulp - run: timeout 1s npm start From ff736531653a18d67bddc3de5543bce7b3bf5966 Mon Sep 17 00:00:00 2001 From: Trivernis Date: Mon, 16 Nov 2020 10:52:46 +0100 Subject: [PATCH 4/4] Remove unecessary node versions from matrix --- .github/workflows/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index e0e20bc..aa66516 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - node-version: [10.x, 12.x, 14.x] + node-version: [14.x] steps: - uses: actions/checkout@v2