Skip to content

Commit

Permalink
Merge main to bundler plugin (#933)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: t2t2 <[email protected]>
Co-authored-by: Jozef Harag <[email protected]>
Co-authored-by: Pavel Potáček <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: David Kadlec <[email protected]>
  • Loading branch information
6 people authored Jan 22, 2025
1 parent b294974 commit bd96f5b
Show file tree
Hide file tree
Showing 349 changed files with 58,858 additions and 65,446 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# editorconfig.org

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 120

[*.md]
trim_trailing_whitespace = false
150 changes: 0 additions & 150 deletions .eslintrc.js

This file was deleted.

10 changes: 5 additions & 5 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
* @signalfx/gdi-js-maintainers @signalfx/gdi-js-approvers
*.md @signalfx/gdi-docs @signalfx/gdi-js-maintainers @signalfx/gdi-js-approvers
*.rst @signalfx/gdi-docs @signalfx/gdi-js-maintainers @signalfx/gdi-js-approvers
docs/ @signalfx/gdi-docs @signalfx/gdi-js-maintainers @signalfx/gdi-js-approvers
README* @signalfx/gdi-docs @signalfx/gdi-js-maintainers @signalfx/gdi-js-approvers
* @signalfx/gdi-js-web-maintainers @signalfx/gdi-js-web-approvers @signalfx/gdi-js-maintainers @signalfx/gdi-js-approvers
*.md @signalfx/gdi-docs @signalfx/gdi-js-web-maintainers @signalfx/gdi-js-web-approvers @signalfx/gdi-js-maintainers @signalfx/gdi-js-approvers
*.rst @signalfx/gdi-docs @signalfx/gdi-js-web-maintainers @signalfx/gdi-js-web-approvers @signalfx/gdi-js-maintainers @signalfx/gdi-js-approvers
docs/ @signalfx/gdi-docs @signalfx/gdi-js-web-maintainers @signalfx/gdi-js-web-approvers @signalfx/gdi-js-maintainers @signalfx/gdi-js-approvers
README* @signalfx/gdi-docs @signalfx/gdi-js-web-maintainers @signalfx/gdi-js-web-approvers @signalfx/gdi-js-maintainers @signalfx/gdi-js-approvers
37 changes: 37 additions & 0 deletions .github/actions/install-playwright/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: 'Install playwright'
description: 'Install Playwright browser binaries and OS dependencies'
runs:
using: 'composite'
steps:
- name: Get installed Playwright version
id: playwright-version
shell: bash
working-directory: ./packages/integration-tests
run: |
PLAYWRIGHT_VERSION=$(npm ls --json "@playwright/test" | jq --raw-output '.dependencies["@playwright/test"].version')
echo "PLAYWRIGHT_VERSION=$PLAYWRIGHT_VERSION" >> $GITHUB_ENV
- name: Set up path for Playwright cache
shell: bash
run: echo "PLAYWRIGHT_CACHE_PATH=$(if [[ $RUNNER_OS == 'macOS' ]]; then echo '~/Library/Caches/ms-playwright'; else echo '~/.cache/ms-playwright'; fi)" >> $GITHUB_ENV

- name: Cache Playwright binaries
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
id: playwright-cache
with:
path: ${{ env.PLAYWRIGHT_CACHE_PATH }}
key: '${{ runner.os }}-playwright-cache-${{ env.PLAYWRIGHT_VERSION }}-splunk-otel-js-web-artifacts'

- name: Install Playwright browser binaries
if: steps.playwright-cache.outputs.cache-hit != 'true'
shell: bash
run: |
npx playwright install --with-deps
npx playwright install chrome
npx playwright install msedge
npx playwright install webkit
- name: Install Playwright OS dependencies
if: steps.playwright-cache.outputs.cache-hit != 'true'
shell: bash
run: npx playwright install-deps
17 changes: 17 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: 'Setup'
description: 'Setup node, install deps, compile'
runs:
using: 'composite'
steps:
- uses: actions/[email protected]
with:
node-version: '18'
cache: 'npm'

- name: Install dependencies
shell: bash
run: npm ci

- name: Build project
shell: bash
run: npm run compile
22 changes: 11 additions & 11 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
version: 2

updates:
# Enable version updates for npm
- package-ecosystem: "npm"
# Look for `package.json` and `lock` files in the `root` directory
directory: "/"
# Check the npm registry for updates every day (weekdays)
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
# Enable version updates for npm
- package-ecosystem: 'npm'
# Look for `package.json` and `lock` files in the `root` directory
directory: '/'
# Check the npm registry for updates every day (weekdays)
schedule:
interval: 'weekly'
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'daily'
24 changes: 12 additions & 12 deletions .github/workflows/check-links.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: Check Links

on:
push:
branches: [ main ]
pull_request:
on:
push:
branches: [main]
pull_request:

jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected].1
linkChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected].2

- name: Link Checker
uses: lycheeverse/lychee-action@v1.8.0
with:
fail: true
- name: Link Checker
uses: lycheeverse/lychee-action@v2.2.0
with:
fail: true
79 changes: 38 additions & 41 deletions .github/workflows/ci-main.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,44 @@
name: Continuous Integration Main
on:
push:
branches:
- main
push:
branches:
- main
permissions: read-all

jobs:
unit-tests:
runs-on: ubuntu-latest
permissions: read-all
steps:
- name: Checkout
uses: actions/[email protected]
- uses: actions/[email protected]
with:
node-version: '18'
cache: 'npm'
- run: npm ci
- run: npm run version:check
- name: Lint code
run: npm run lint
- name: Lint docs
run: npm run lint:markdown
- name: Transpile code
run: npm run compile
- name: Unit test
run: npm run test:unit:ci
unit-tests:
runs-on: ubuntu-latest
permissions: read-all
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup
uses: ./.github/actions/setup
- name: Size check
run: npm run size-limit
- run: npm run version:check
- name: Lint code
run: npm run lint
- name: Transpile code
run: npm run compile
- name: Unit test
run: npm run test:unit:ci

local-integration-tests:
runs-on: ubuntu-latest
permissions: read-all
strategy:
fail-fast: true
matrix:
browser: [headlessChrome, headlessFirefox]
steps:
- name: Checkout
uses: actions/[email protected].1
- uses: actions/[email protected]
with:
node-version: '18'
cache: 'npm'
- run: npm ci
- run: npm run compile
- name: Local integration tests using ${{ matrix.browser }}
run: npm run test:integration:local:${{ matrix.browser }}:_execute
local-integration-tests:
runs-on: ubuntu-latest
permissions: read-all
strategy:
fail-fast: true
matrix:
browser: [headlessChrome, headlessFirefox]
steps:
- name: Checkout
uses: actions/[email protected].2
- name: Setup
uses: ./.github/actions/setup
- name: Local integration tests using ${{ matrix.browser }}
run: npm run test:integration:local:${{ matrix.browser }}:_execute

playwright:
uses: ./.github/workflows/tests.yml
secrets: inherit
Loading

0 comments on commit bd96f5b

Please sign in to comment.