Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '16.18.x'
# Rebase must happen before installing dependencies.
- name: Rebase current branch
run: node ./scripts/rebase-pr.js
Expand All @@ -31,7 +31,7 @@ jobs:
uses: actions/cache@v3
with:
path: node_modules
key: cache-node-modules-${{ hashFiles('package-lock.json') }}
key: cache-node-modules_node16.18_${{ hashFiles('package-lock.json') }}
- name: npm install
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
uses: actions/cache@v3
with:
path: node_modules
key: cache-node-modules-${{ hashFiles('package-lock.json') }}
key: cache-node-modules_node16.18_${{ hashFiles('package-lock.json') }}
# Running ngcc after each agent is created to address the "ngcc is already running error".
# Since we're running multiple builds in parallel, we need to pre-process our node_modules before starting the builds.
- name: Run NGCC
Expand All @@ -92,7 +92,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '16.18.x'
# Rebase must happen before installing dependencies.
- name: Rebase current branch
run: node ./scripts/rebase-pr.js
Expand All @@ -102,7 +102,7 @@ jobs:
uses: actions/cache@v3
with:
path: node_modules
key: cache-node-modules-${{ hashFiles('package-lock.json') }}
key: cache-node-modules_node16.18_${{ hashFiles('package-lock.json') }}
- name: Check library dependencies
run: npx skyux-dev check-lib-dependencies
- name: Check library missing peers
Expand All @@ -126,7 +126,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '16.18.x'
# Rebase must happen before installing dependencies.
- name: Rebase current branch
run: node ./scripts/rebase-pr.js
Expand All @@ -136,7 +136,7 @@ jobs:
uses: actions/cache@v3
with:
path: node_modules
key: cache-node-modules-${{ hashFiles('package-lock.json') }}
key: cache-node-modules_node16.18_${{ hashFiles('package-lock.json') }}
- name: Run NGCC
run: npx ngcc
- name: Build
Expand All @@ -154,15 +154,15 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '16.18.x'
# Rebase must happen before installing dependencies.
- name: Rebase current branch
run: node ./scripts/rebase-pr.js
- name: Retrieve node_modules cache
uses: actions/cache@v3
with:
path: node_modules
key: cache-node-modules-${{ hashFiles('package-lock.json') }}
key: cache-node-modules_node16.18_${{ hashFiles('package-lock.json') }}
- name: Build packages dist
run: npx skyux-dev create-packages-dist

Expand All @@ -177,7 +177,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '16.18.x'
# Rebase must happen before installing dependencies.
- name: Rebase current branch
run: node ./scripts/rebase-pr.js
Expand All @@ -187,7 +187,7 @@ jobs:
uses: actions/cache@v3
with:
path: node_modules
key: cache-node-modules-${{ hashFiles('package-lock.json') }}
key: cache-node-modules_node16.18_${{ hashFiles('package-lock.json') }}
- name: Run NGCC
run: npx ngcc
- name: Code coverage
Expand All @@ -204,11 +204,11 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '16.18.x'
- name: Retrieve node_modules cache
uses: actions/cache@v3
with:
path: node_modules
key: cache-node-modules-${{ hashFiles('package-lock.json') }}
key: cache-node-modules_node16.18_${{ hashFiles('package-lock.json') }}
- name: Stop Nx Cloud agents
run: npx nx-cloud stop-all-agents
20 changes: 10 additions & 10 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '16.18.x'
cache: 'npm'
- name: Rebase current branch
run: node ./scripts/rebase-pr.js
Expand All @@ -41,7 +41,7 @@ jobs:
node_modules
!node_modules\.cache\nx
C:\Users\runneradmin\AppData\Local\Cypress\Cache
key: cache-pr-preview-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
key: cache-pr-preview_node16.18_-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
- name: npm install
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
if: ${{ matrix.project != 'skip' }}
- uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '16.18.x'
if: ${{ matrix.project != 'skip' }}
- name: Rebase current branch
run: node ./scripts/rebase-pr.js
Expand All @@ -103,7 +103,7 @@ jobs:
node_modules
!node_modules\.cache\nx
C:\Users\runneradmin\AppData\Local\Cypress\Cache
key: cache-pr-preview-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
key: cache-pr-preview_node16.18_-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
if: ${{ matrix.project != 'skip' }}
- name: Build ${{ matrix.project }}
# https://github.com/actions/github-script
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:
if: ${{ github.event_name == 'pull_request' }}
- uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '16.18.x'
if: ${{ github.event_name == 'pull_request' }}
- name: Rebase current branch
run: node ./scripts/rebase-pr.js
Expand All @@ -158,7 +158,7 @@ jobs:
node_modules
!node_modules\.cache\nx
C:\Users\runneradmin\AppData\Local\Cypress\Cache
key: cache-pr-preview-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
key: cache-pr-preview_node16.18_-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
if: ${{ github.event_name == 'pull_request' }}
- name: Build ${{ matrix.app }}
run: |
Expand Down Expand Up @@ -192,7 +192,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '16.18.x'
- name: Rebase current branch
run: node ./scripts/rebase-pr.js
- name: Retrieve dependencies cache
Expand All @@ -202,7 +202,7 @@ jobs:
node_modules
!node_modules\.cache\nx
C:\Users\runneradmin\AppData\Local\Cypress\Cache
key: cache-pr-preview-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
key: cache-pr-preview_node16.18_-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
- name: Download artifacts
uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -263,7 +263,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '16.18.x'
- name: Rebase current branch
run: node ./scripts/rebase-pr.js
- name: Retrieve dependencies cache
Expand All @@ -273,7 +273,7 @@ jobs:
node_modules
!node_modules\.cache\nx
C:\Users\runneradmin\AppData\Local\Cypress\Cache
key: cache-pr-preview-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
key: cache-pr-preview_node16.18_-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
- name: Percy ${{ matrix.project }}
# Timing setting recommended by https://docs.percy.io/docs/cypress#missing-assets
run: npx percy exec -t 350 -- nx e2e ${{ matrix.project }}-e2e --skip-nx-cache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- uses: actions/setup-node@v3
with:
cache: npm
node-version: '14'
node-version: '16.18.x'
# Workaround to avoid "Post Run actions/setup-node" failures.
# See: https://github.com/actions/setup-node/issues/317
- name: Ensure cache directory exists
Expand All @@ -40,7 +40,7 @@ jobs:
uses: actions/cache@v3
with:
path: node_modules
key: cache-node-modules-${{ hashFiles('package-lock.json') }}
key: cache-node-modules_node16.18_${{ hashFiles('package-lock.json') }}
- name: npm install
if: ${{ steps.release.outputs.release_created && steps.cache.outputs.cache-hit != 'true' }}
run: npm ci
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14
16.18
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { SkyInputBoxModule } from '@skyux/forms';
import { SkyLookupModule, SkyLookupSelectModeType } from '@skyux/lookup';

import { Column, KeyCode } from 'ag-grid-community';
import { EventCallback } from 'typedoc/dist/lib/utils/events';

import { SkyCellEditorLookupParams } from '../../types/cell-editor-lookup-params';

Expand All @@ -22,7 +21,7 @@ describe('SkyAgGridCellEditorLookupComponent', () => {
];
let fixture: ComponentFixture<SkyAgGridCellEditorLookupComponent>;
let nativeElement: HTMLElement;
let callback: EventCallback | undefined;
let callback: (args: Record<string, unknown>) => void | undefined;
const selection = [data[0]];
let cellEditorParams: SkyCellEditorLookupParams;

Expand All @@ -48,7 +47,10 @@ describe('SkyAgGridCellEditorLookupComponent', () => {
},
column: {
getActualWidth: () => 123,
addEventListener: (event: string, listener: EventCallback) => {
addEventListener: (
event: string,
listener: (args: Record<string, unknown>) => void
) => {
callback = listener;
[event].pop();
},
Expand Down
Loading