From f77ddac652a8528b317e9cf63f4f627969fbb1a2 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Fri, 20 Nov 2020 21:37:00 +0000 Subject: [PATCH 1/4] Add Github Action --- .github/workflows/node.js.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 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 00000000..2fb00152 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,22 @@ +# 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, pull_request] + +jobs: + build: + + runs-on: [ubuntu-latest, windows-latest] + + steps: + - uses: actions/checkout@v2 + - id: nvmrc + uses: browniebroke/read-nvmrc-action@v1 + - uses: actions/setup-node@v1 + with: + node-version: '${{ steps.nvmrc.outputs.node_version }}' + - run: npm ci + - run: npm run build + - run: npm run sizereport From 7f08348509df68950475a38e35e9e0060aab2c49 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Fri, 20 Nov 2020 21:37:38 +0000 Subject: [PATCH 2/4] Delete .travis.yml --- .travis.yml | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 17e83e7f..00000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: node_js -cache: npm -script: npm run build -after_success: npm run sizereport -os: - - linux - - windows From 10bfd60e201b9377281647c93f2c7c58a19c90ff Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Fri, 20 Nov 2020 21:39:18 +0000 Subject: [PATCH 3/4] Try to fix multiple OS --- .github/workflows/node.js.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 2fb00152..93a59236 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -8,7 +8,11 @@ on: [push, pull_request] jobs: build: - runs-on: [ubuntu-latest, windows-latest] + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest, windows-latest] steps: - uses: actions/checkout@v2 From 8f7369068c6140df006799b0fc61cc5cf550c766 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Fri, 20 Nov 2020 21:41:57 +0000 Subject: [PATCH 4/4] Remove sizereport step Apparently it doesn't exist anymore, even though it was referenced in Travis. --- .github/workflows/node.js.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 93a59236..407f6c7e 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,6 +1,3 @@ -# 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, pull_request] @@ -23,4 +20,3 @@ jobs: node-version: '${{ steps.nvmrc.outputs.node_version }}' - run: npm ci - run: npm run build - - run: npm run sizereport