From 2e9703346cf2005fe209fdb811ab0aa61118fb18 Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" Date: Sat, 10 Aug 2019 21:19:03 +0200 Subject: [PATCH 1/4] Update nodejs.yml --- .github/workflows/nodejs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index fdc794c..18021f0 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -16,4 +16,4 @@ jobs: - name: npm install, build, and test run: | npm install - npm test + npm build From ade58caf412f5f5c332b648b4611c52d10815bf2 Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" Date: Sat, 10 Aug 2019 21:25:03 +0200 Subject: [PATCH 2/4] Update nodejs.yml --- .github/workflows/nodejs.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 18021f0..d29a4b2 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -13,7 +13,10 @@ jobs: uses: actions/setup-node@v1 with: version: 10.x - - name: npm install, build, and test + - name: Use Yarn 1.17.2 run: | - npm install - npm build + npm install -g yarn@1.17.2 + - name: yarn build + run: | + yarn install + yarn build From 9b55b75f8a68a64b419b81b9b6572f3fd358b88b Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" Date: Sat, 10 Aug 2019 21:29:56 +0200 Subject: [PATCH 3/4] Update nodejs.yml --- .github/workflows/nodejs.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index d29a4b2..4d4c994 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -20,3 +20,25 @@ jobs: run: | yarn install yarn build + test: + name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + node_version: [8, 10, 12] + os: [ubuntu-latest, windows-latest, macOS-latest] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node_version }} + uses: actions/setup-node@v1 + with: + version: ${{ matrix.node_version }} + + - name: Use Yarn 1.17.2 + run: | + npm install -g yarn@1.17.2 + - name: yarn build + run: | + yarn install + yarn build From 62b6edc821675b71375ad320863450ded0f2a466 Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" Date: Sat, 10 Aug 2019 21:38:21 +0200 Subject: [PATCH 4/4] Update nodejs.yml --- .github/workflows/nodejs.yml | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 4d4c994..21164cb 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -3,24 +3,7 @@ name: Node CI on: [push] jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@master - - name: Use Node.js 10.x - uses: actions/setup-node@v1 - with: - version: 10.x - - name: Use Yarn 1.17.2 - run: | - npm install -g yarn@1.17.2 - - name: yarn build - run: | - yarn install - yarn build - test: + ci: name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: @@ -41,4 +24,5 @@ jobs: - name: yarn build run: | yarn install + yarn lint yarn build