Skip to content

Commit

Permalink
Merge branch 'master' into bowenbrooks/pino-integration-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bojbrook committed Nov 9, 2022
2 parents 546ba71 + 1783934 commit 3d1b4e1
Show file tree
Hide file tree
Showing 516 changed files with 28,412 additions and 12,415 deletions.
769 changes: 20 additions & 749 deletions .circleci/config.yml

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ coverage:
range: 90..100
round: down
precision: 2
status:
project: off
patch: off
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
5 changes: 3 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parserOptions": {
"ecmaVersion": 2018
"ecmaVersion": 2020
},
"extends": [
"eslint:recommended",
Expand All @@ -16,6 +16,7 @@
"prefer-const": 2,
"object-curly-spacing": [2, "always"],
"import/no-extraneous-dependencies": 2,
"standard/no-callback-literal": 0
"standard/no-callback-literal": 0,
"no-prototype-builtins": 0
}
}
21 changes: 21 additions & 0 deletions .github/actions/datadog-ci/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Download datadog-ci CLI
runs:
using: composite
steps:
- name: Install datadog-ci for Linux
if: runner.os == 'Linux'
run: |
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
chmod +x /usr/local/bin/datadog-ci
shell: bash
- name: Install datadog-ci for macOS
if: runner.os == 'macOS'
run: |
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_darwin-x64" --output "/usr/local/bin/datadog-ci"
chmod +x /usr/local/bin/datadog-ci
shell: bash
- name: Install datadog-ci for Windows
if: runner.os == 'Windows'
run: Invoke-WebRequest -Uri "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_win-x64.exe" -OutFile "datadog-ci.exe"
shell: pwsh

19 changes: 19 additions & 0 deletions .github/actions/injection/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Build/Publish Injection Image
inputs:
init-image-version:
description: Image version to use for publishing
required: true
runs:
using: composite
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@dc7b9719a96d48369863986a06765841d7ea23f6 # 2.0.0
- name: Build injection image and push to github packages
shell: bash
run: |
mv dd-trace-*.tgz k8s/auto-inst/dd-trace.tgz
docker buildx create --name lib-injection
docker buildx use lib-injection
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes # https://stackoverflow.com/questions/72167570/docker-buildx-nodejs-fail
docker buildx build --platform=linux/amd64,linux/arm/v7,linux/arm64/v8 -t ghcr.io/datadog/dd-trace-js/dd-lib-js-init:${{ inputs.init-image-version }} --push k8s/auto-inst
7 changes: 7 additions & 0 deletions .github/actions/node/14/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: Node 14
runs:
using: composite
steps:
- uses: actions/setup-node@v3
with:
node-version: '14'
7 changes: 7 additions & 0 deletions .github/actions/node/16/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: Node 16
runs:
using: composite
steps:
- uses: actions/setup-node@v3
with:
node-version: '16'
7 changes: 7 additions & 0 deletions .github/actions/node/18/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: Node 18
runs:
using: composite
steps:
- uses: actions/setup-node@v3
with:
node-version: '18'
7 changes: 7 additions & 0 deletions .github/actions/node/latest/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: Node 19
runs:
using: composite
steps:
- uses: actions/setup-node@v3
with:
node-version: '19'
7 changes: 7 additions & 0 deletions .github/actions/node/oldest/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: Node 14
runs:
using: composite
steps:
- uses: actions/setup-node@v3
with:
node-version: '14'
8 changes: 8 additions & 0 deletions .github/actions/node/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Node Setup
runs:
using: composite
steps:
- uses: actions/setup-node@v3
with:
cache: yarn
node-version: '14'
25 changes: 25 additions & 0 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Core

on:
pull_request:
push:
branches: [master]
schedule:
- cron: '0 4 * * *'

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true

jobs:
shimmer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/node/setup
- run: yarn install
- uses: ./.github/actions/node/oldest
- run: yarn test:shimmer:ci
- uses: ./.github/actions/node/latest
- run: yarn test:shimmer:ci
- uses: codecov/codecov-action@v2
25 changes: 25 additions & 0 deletions .github/workflows/package-size.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Package Size

on:
pull_request_target:
schedule:
- cron: '0 4 * * *'

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true

jobs:
package-size-report:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- run: yarn
- name: Compute module size tree and report
uses: qard/heaviest-objects-in-the-universe@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit 3d1b4e1

Please sign in to comment.