From 968844eac070897f7f588de48538fe4b0b74fa7b Mon Sep 17 00:00:00 2001 From: Endi Date: Sat, 7 Dec 2019 10:16:01 +0700 Subject: [PATCH 1/3] chore: add GitHub actions for v2 windows build --- .github/workflows/nodejs-windows.yml | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/nodejs-windows.yml diff --git a/.github/workflows/nodejs-windows.yml b/.github/workflows/nodejs-windows.yml new file mode 100644 index 000000000000..98d54b06dd0d --- /dev/null +++ b/.github/workflows/nodejs-windows.yml @@ -0,0 +1,30 @@ +name: Node CI Build on Windows + +on: + # Trigger the workflow on push or pull request, + # but only for the master branch + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + runs-on: windows-2019 + strategy: + matrix: + node-version: [8.x, 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: yarn and yarn build + run: | + yarn + yarn build + env: + CI: true From 2b47dc66a3659ff09bac32291b19d4b3667b0954 Mon Sep 17 00:00:00 2001 From: Endi Date: Sat, 7 Dec 2019 10:19:43 +0700 Subject: [PATCH 2/3] Just use one node version --- .github/workflows/nodejs-windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nodejs-windows.yml b/.github/workflows/nodejs-windows.yml index 98d54b06dd0d..391735d247c6 100644 --- a/.github/workflows/nodejs-windows.yml +++ b/.github/workflows/nodejs-windows.yml @@ -15,7 +15,7 @@ jobs: runs-on: windows-2019 strategy: matrix: - node-version: [8.x, 10.x, 12.x] + node-version: [8.x] steps: - uses: actions/checkout@v1 - name: Use Node.js ${{ matrix.node-version }} From 8d24e31df4877becf0477901349c35e8fa254157 Mon Sep 17 00:00:00 2001 From: Endi Date: Sat, 7 Dec 2019 10:27:10 +0700 Subject: [PATCH 3/3] Update nodejs-windows.yml tweak for docusaurus build on v1 and v2 --- .github/workflows/nodejs-windows.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/nodejs-windows.yml b/.github/workflows/nodejs-windows.yml index 391735d247c6..973e824d64ef 100644 --- a/.github/workflows/nodejs-windows.yml +++ b/.github/workflows/nodejs-windows.yml @@ -1,4 +1,4 @@ -name: Node CI Build on Windows +name: Docusaurus on Windows on: # Trigger the workflow on push or pull request, @@ -22,9 +22,11 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - name: yarn and yarn build - run: | - yarn - yarn build + - name: Installation + run: yarn + - name: Docusaurus 1 Build + run: yarn build:v1 + - name: Docusaurus 2 Build + run: yarn build:v2 env: CI: true