From e732edbe7c730728b35dc391310bb890d48a9539 Mon Sep 17 00:00:00 2001 From: Arthur Danjou Date: Mon, 1 Jun 2020 22:55:23 +0200 Subject: [PATCH 1/2] Create node.js.yml --- .github/workflows/node.js.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..61599b6 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,24 @@ +name: Node.js CI + +on: [push] + +jobs: + build: + + runs-on: self-hosted + + strategy: + matrix: + node-version: [12.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 install + - run: npm run build --if-present + - run: pm2 reload next-js + env: + CI: true From 1c4b7174a3be9c7096889da45664a4f66e08e7af Mon Sep 17 00:00:00 2001 From: Arthur Danjou Date: Mon, 1 Jun 2020 22:58:35 +0200 Subject: [PATCH 2/2] Update node.js.yml --- .github/workflows/node.js.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 61599b6..9184f9b 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -6,10 +6,10 @@ jobs: build: runs-on: self-hosted - + strategy: matrix: - node-version: [12.x] + node-version: [12.x, 14.x] steps: - uses: actions/checkout@v2