diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5e3b20ac..2d77268f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,9 +18,11 @@ on: push: branches: - 'main' + - 'release/**/*' pull_request: branches: - 'main' + - 'release/**/*' workflow_dispatch: concurrency: @@ -37,7 +39,7 @@ jobs: - uses: 'actions/setup-node@v4' with: - node-version: '20.x' + node-version: '16.x' - name: 'npm build' run: 'npm ci && npm run build' @@ -65,7 +67,7 @@ jobs: - uses: 'actions/setup-node@v4' with: - node-version: '20.x' + node-version: '16.x' - name: 'npm build' run: 'npm ci && npm run build' @@ -141,7 +143,7 @@ jobs: - uses: 'actions/setup-node@v4' with: - node-version: '20.x' + node-version: '16.x' - name: 'npm build' run: 'npm ci && npm run build' @@ -216,7 +218,7 @@ jobs: - uses: 'actions/setup-node@v4' with: - node-version: '20.x' + node-version: '16.x' - name: 'npm build' run: 'npm ci && npm run build' diff --git a/action.yml b/action.yml index 8773a094..7afd7698 100644 --- a/action.yml +++ b/action.yml @@ -186,6 +186,6 @@ branding: color: 'blue' runs: - using: 'node20' + using: 'node16' main: 'dist/main/index.js' post: 'dist/post/index.js' diff --git a/bin/runTests.sh b/bin/runTests.sh index 2c6c21e5..90838f9a 100644 --- a/bin/runTests.sh +++ b/bin/runTests.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -set -eEuo pipefail +set -eEuxo pipefail # # As of Node 20, the --test parameter does not support globbing, and it does not @@ -13,7 +13,4 @@ set -eEuo pipefail # fed to the caller. # -FILES="$(node -e "process.stdout.write(require('node:fs').readdirSync('./', { recursive: true }).filter((e) => {return e.endsWith('.test.ts') && !e.startsWith('node_modules');}).sort().join(' '));")" - -set -x -exec node --require ts-node/register --test-reporter spec --test ${FILES} +exec node --require ts-node/register --test ./tests/client/credentials_json_client.test.ts ./tests/client/workload_identity_client.test.ts ./tests/utils.test.ts