Skip to content

Commit

Permalink
chore: switch to nodejs 16
Browse files Browse the repository at this point in the history
Change-Id: I0d7b2cd14a395b052e3e21ff2219d558e808eabd
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
  • Loading branch information
benoitf committed Nov 19, 2021
1 parent a95fbe7 commit 2c0c37f
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/happy-path.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v1
with:
node-version: '12'
node-version: '16'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/image-build-pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v1
with:
node-version: '12'
node-version: '16'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/next-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

- uses: actions/setup-node@v1
with:
node-version: '12'
node-version: '16'

- name: Login to quay.io
uses: docker/login-action@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-content-push-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v1
with:
node-version: '12'
node-version: '16'
- name: extract content
run: |
docker create --name pluginRegistry quay.io/eclipse/che-plugin-registry:next sh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-plugin-report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12'
node-version: '16'
- name: Get current time
uses: 1466587594/get-current-time@v1
id: current-date-time
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-pr-check-content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
echo "PR_SHA=$pr_sha" >> $GITHUB_ENV
- uses: actions/setup-node@v2-beta
with:
node-version: '12'
node-version: '16'
- name: publish
env:
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: 'setup nodejs'
uses: actions/setup-node@v1
with:
node-version: '12'
node-version: '16'
registry-url: 'https://registry.npmjs.org'
scope: '@eclipse-che'
- name: Clone source code
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/resource-limits-pr-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:

steps:

- name: Setup node 12
- name: Setup node 16
uses: actions/setup-node@v1
with:
node-version: '12'
node-version: '16'

- name: Clone source code
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/typescript-pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
steps:
- uses: actions/setup-node@v1
with:
node-version: '12'
node-version: '16'
- name: Clone source code
uses: actions/checkout@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/typescript-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
steps:
- uses: actions/setup-node@v1
with:
node-version: '12'
node-version: '16'
registry-url: 'https://registry.npmjs.org'
scope: '@eclipse-che'
- name: Clone source code
Expand Down
4 changes: 2 additions & 2 deletions tools/build/tests/build.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -502,9 +502,9 @@ describe('Test Build', () => {
const deferred = new Deferred();
const task = ora('my-task').start();
const spyFailTask = jest.spyOn(task, 'fail');
build.wrapIntoTask('This is my task', deferred.promise, task);
const wrapTask = build.wrapIntoTask('This is my task', deferred.promise, task);
deferred.reject('rejecting');
await expect(deferred.promise).rejects.toMatch('rejecting');
await expect(wrapTask).rejects.toMatch('rejecting');
expect(spyFailTask).toBeCalled();
expect(spyFailTask.mock.calls[0][0]).toBeUndefined();
});
Expand Down

0 comments on commit 2c0c37f

Please sign in to comment.