Skip to content

Commit

Permalink
tests: add node 16 to test matrices (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
iddan committed Jun 22, 2021
1 parent 1a0cd35 commit b31c3ef
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
node-version: [12.x, 14.x]
node-version: [12.x, 14.x, 16.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/trunk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
node-version: [12.x, 14.x]
node-version: [12.x, 14.x, 16.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand Down
8 changes: 7 additions & 1 deletion scripts/get-e2e-db-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ type ComboCase =
| '14.x + windows-latest'
| '14.x + macos-latest'
| '14.x + ubuntu-latest'
| '16.x + windows-latest'
| '16.x + macos-latest'
| '16.x + ubuntu-latest'

const nodeVersionParser = z.union([z.literal('12.x'), z.literal('14.x')])
const nodeVersionParser = z.union([z.literal('12.x'), z.literal('14.x'), z.literal('16.x')])

const osParser = z.union([z.literal('macos-latest'), z.literal('ubuntu-latest'), z.literal('windows-latest')])

Expand All @@ -21,6 +24,9 @@ const connectionStringMapping: Record<ComboCase, string> = {
'14.x + macos-latest': 'node_14_macos_latest',
'14.x + windows-latest': 'node_14_windows_latest',
'14.x + ubuntu-latest': 'node_14_ubuntu_latest',
'16.x + macos-latest': 'node_16_macos_latest',
'16.x + windows-latest': 'node_16_windows_latest',
'16.x + ubuntu-latest': 'node_16_ubuntu_latest',
}

const args = arg({
Expand Down

0 comments on commit b31c3ef

Please sign in to comment.