diff --git a/.github/actions/build-nodejs-layer/action.yml b/.github/actions/build-nodejs-layer/action.yml index 9a538201ae..0b8b7beafc 100644 --- a/.github/actions/build-nodejs-layer/action.yml +++ b/.github/actions/build-nodejs-layer/action.yml @@ -13,8 +13,9 @@ runs: using: composite steps: - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 + working-directory: nodejs with: - node-version: 20 + node-version-file: '.nvmrc' - name: Build Node.js layer shell: bash diff --git a/.github/actions/build-python-layer/action.yml b/.github/actions/build-python-layer/action.yml index c66190ef6b..fd734563b0 100644 --- a/.github/actions/build-python-layer/action.yml +++ b/.github/actions/build-python-layer/action.yml @@ -13,8 +13,9 @@ runs: using: composite steps: - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 + working-directory: python/src with: - python-version: '3.10' + python-version-file: .python-version - name: Save Python OpenTelemetry SDK version id: version diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 4d3aebb93e..090ab66602 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -101,8 +101,9 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 + working-directory: integration-tests with: - node-version: 22 + node-version-file: '.nvmrc' - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: diff --git a/integration-tests/.nvmrc b/integration-tests/.nvmrc new file mode 100644 index 0000000000..2bd5a0a98a --- /dev/null +++ b/integration-tests/.nvmrc @@ -0,0 +1 @@ +22 diff --git a/nodejs/.nvmrc b/nodejs/.nvmrc new file mode 100644 index 0000000000..209e3ef4b6 --- /dev/null +++ b/nodejs/.nvmrc @@ -0,0 +1 @@ +20 diff --git a/python/src/.python-version b/python/src/.python-version new file mode 100644 index 0000000000..2c0733315e --- /dev/null +++ b/python/src/.python-version @@ -0,0 +1 @@ +3.11