Skip to content

Bump @types/node from 20.11.20 to 20.11.30 in /nodejs/wrapper-adot #1237

Bump @types/node from 20.11.20 to 20.11.30 in /nodejs/wrapper-adot

Bump @types/node from 20.11.20 to 20.11.30 in /nodejs/wrapper-adot #1237

Workflow file for this run

name: PR Build
on:
pull_request:
branches: [ main ]
permissions:
id-token: write
contents: read
jobs:
build-artifacts:
runs-on: ubuntu-20.04
name: Build artifacts - ${{ matrix.language }}
strategy:
matrix:
language: [ java, nodejs, python, dotnet, go ]
build_command: [ ./build.sh ]
architecture: [ amd64, arm64 ]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-go@v5
with:
go-version: '~1.21.3'
check-latest: true
- uses: actions/setup-java@v4
if: ${{ matrix.language == 'java' }}
with:
distribution: corretto
java-version: '17'
- name: Cache (Java)
uses: actions/cache@v3
if: ${{ matrix.language == 'java' }}
with:
path: |
~/go/pkg/mod
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-gradle-
- uses: actions/setup-node@v4
if: ${{ matrix.language == 'nodejs' }}
with:
node-version: '16'
- name: Cache (NodeJS)
uses: actions/cache@v3
if: ${{ matrix.language == 'nodejs' }}
with:
path: |
~/go/pkg/mod
~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-node-
- uses: actions/setup-python@v5
if: ${{ matrix.language == 'python' }}
with:
python-version: '3.x'
- name: Cache (Python)
uses: actions/cache@v3
if: ${{ matrix.language == 'python' }}
with:
path: |
~/go/pkg/mod
~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-pip-
- uses: actions/setup-dotnet@v4
if: ${{ matrix.language == 'dotnet' }}
with:
dotnet-version: '6.0.405'
- name: Patch ADOT
run: ./patch-upstream.sh
- name: Build layers / sample functions
if: ${{ matrix.language != 'dotnet' && matrix.language != 'go' }}
run: GOARCH=${{ matrix.architecture }} ${{ matrix.build_command }} ${{ matrix.architecture }}
working-directory: ${{ matrix.language }}
- name: Build collector
if: ${{ matrix.language == 'dotnet' || matrix.language == 'go' }}
run: GOARCH=${{ matrix.architecture }} make package
working-directory: opentelemetry-lambda/collector