Skip to content

Commit

Permalink
Merge branch 'ci/node-20' into CDX-1408
Browse files Browse the repository at this point in the history
  • Loading branch information
olamothe committed Oct 18, 2023
2 parents 8092cad + 78c0536 commit b8105f2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/actions/e2e-run/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ runs:
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
with:
cache: 'npm'
node-version-file: '.nvmrc'
node-version: ${{inputs.node}}
- uses: actions/setup-python@57ded4d7d5e986d7296eab16560982c6dd7c923b # v4
with:
cache: 'pip'
Expand Down Expand Up @@ -79,5 +79,5 @@ runs:
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3
if: cancelled() || failure() || success()
with:
name: ${{inputs.os}}-${{inputs.spec}}-test-artifacts
name: ${{inputs.os}}-${{inputs.node}}-${{inputs.spec}}-test-artifacts
path: ./packages/cli-e2e/artifacts
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ jobs:
fail-fast: false
matrix:
os: ['ubuntu-20.04', 'windows-latest']
node: ['18', '20']
spec:
[
'angular.specs.ts',
Expand All @@ -151,7 +152,7 @@ jobs:
spec: auth.specs.ci.ts
env:
# ID of the test run to identify resources to teardown.
TEST_RUN_ID: 'id${{ matrix.os }}-${{ github.sha }}-${{ github.run_attempt }}g'
TEST_RUN_ID: 'id${{ matrix.os }}-${{ matrix.node }}-${{ github.sha }}-${{ github.run_attempt }}g'
COVEO_DISABLE_AUTOUPDATE: true
CLI_CONFIG_JSON: ${{needs.e2e-setup-login.outputs.cliConfigJson}}
steps:
Expand Down
8 changes: 2 additions & 6 deletions scripts/cleaning/delete-api-keys.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
require('isomorphic-fetch');
require('abortcontroller-polyfill');

const {homedir} = require('os');
const {join} = require('path');
const {config} = require('dotenv');
Expand All @@ -9,9 +6,8 @@ config({path: join(homedir(), '.env')});

function wasCreatedByTheCli(testRunId = '') {
return (key) =>
(key.displayName?.startsWith(`cli-idwindows-latest-${testRunId}`) ||
key.displayName?.startsWith(`cli-idubuntu-20-04-${testRunId}`) ||
key.displayName?.startsWith(`cli-id${testRunId}`)) &&
key.displayName?.startsWith('cli-id') &&
key.displayName?.includes(testRunId) &&
key.description === 'Generated by the Coveo CLI';
}

Expand Down
7 changes: 2 additions & 5 deletions scripts/cleaning/delete-orgs.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
require('isomorphic-fetch');
require('abortcontroller-polyfill');

const {homedir} = require('os');
const {join} = require('path');
const {config} = require('dotenv');
Expand All @@ -15,8 +12,8 @@ config({path: join(homedir(), '.env')});
function wasCreatedByTheCli(testRunId = '') {
return (key) =>
testRunId
? key.displayName?.startsWith(`cli-e2e-idwindows-latest-${testRunId}`) ||
key.displayName?.startsWith(`cli-e2e-idubuntu-20-04-${testRunId}`)
? key.displayName?.startsWith('cli-e2e-id') &&
key.displayName?.includes(testRunId)
: key.displayName?.match(/cli-e2e.*g/);
}

Expand Down

0 comments on commit b8105f2

Please sign in to comment.