-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
b294974
commit bd96f5b
Showing
349 changed files
with
58,858 additions
and
65,446 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.