From 116f79aee0bfe229e88145228862b88dae3f1adf Mon Sep 17 00:00:00 2001 From: Crafterzman Date: Fri, 23 Apr 2021 10:30:35 -0700 Subject: [PATCH 1/5] Setup NodeJS CI --- .github/workflows/NodeCI.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/NodeCI.yml diff --git a/.github/workflows/NodeCI.yml b/.github/workflows/NodeCI.yml new file mode 100644 index 000000000..09b1d56a9 --- /dev/null +++ b/.github/workflows/NodeCI.yml @@ -0,0 +1,26 @@ +name: Node.js CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x, 14.x, 15.x] + # Add/Remove versions as needed + + 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 run build --if-present From 1668e2b8f97c565c943c98916ec4e946ee315e48 Mon Sep 17 00:00:00 2001 From: Crafterzman Date: Fri, 23 Apr 2021 10:49:47 -0700 Subject: [PATCH 2/5] Delete NodeCI.yml --- .github/workflows/NodeCI.yml | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 .github/workflows/NodeCI.yml diff --git a/.github/workflows/NodeCI.yml b/.github/workflows/NodeCI.yml deleted file mode 100644 index 09b1d56a9..000000000 --- a/.github/workflows/NodeCI.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Node.js CI - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [10.x, 12.x, 14.x, 15.x] - # Add/Remove versions as needed - - 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 run build --if-present From 1eb1b0499c9a05e2fa955148dffea22a165dcf44 Mon Sep 17 00:00:00 2001 From: Crafterzman Date: Fri, 23 Apr 2021 10:49:59 -0700 Subject: [PATCH 3/5] Update checks.yml --- .github/workflows/checks.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index d24b31ca4..bfc8643dc 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -2,6 +2,17 @@ name: Checks on: [pull_request] jobs: + build: + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: NodeJS build + uses: actions/setup-node@v1 + with: + node-version: 14.x + - run: npm ci + - run: npm run build --if-present validation: runs-on: ubuntu-latest steps: From b899aa2832fe5ac9271746fa7a5f4cd984093695 Mon Sep 17 00:00:00 2001 From: Crafterzman Date: Fri, 23 Apr 2021 10:54:25 -0700 Subject: [PATCH 4/5] Update checks.yml --- .github/workflows/checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index bfc8643dc..a4f3291b4 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -10,7 +10,7 @@ jobs: - name: NodeJS build uses: actions/setup-node@v1 with: - node-version: 14.x + node-version: 15.x - run: npm ci - run: npm run build --if-present validation: From c2f8c293c6efff8c960f1a13216ebb594b46f096 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 1 May 2021 00:22:26 +0530 Subject: [PATCH 5/5] Update checks.yml --- .github/workflows/checks.yml | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index a4f3291b4..e31889d09 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -2,17 +2,6 @@ name: Checks on: [pull_request] jobs: - build: - - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: NodeJS build - uses: actions/setup-node@v1 - with: - node-version: 15.x - - run: npm ci - - run: npm run build --if-present validation: runs-on: ubuntu-latest steps: @@ -20,11 +9,15 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 - - name: Installing dependencies + - name: Setup node v15 + uses: actions/setup-node@v1 + with: + node-version: '15' + - name: Install dependencies uses: borales/actions-yarn@v2.0.0 with: - cmd: install --ignore-engines - - name: Running tests + cmd: install --ignore-engines --frozen-lockfile + - name: Run tests uses: borales/actions-yarn@v2.0.0 with: cmd: test