Skip to content

Commit

Permalink
chore: use prettier (#882)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joozty authored Nov 6, 2024
1 parent 7d1171f commit fbdd616
Show file tree
Hide file tree
Showing 37 changed files with 52,696 additions and 52,421 deletions.
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/checkout@v4.2.1
linkChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.1

- name: Link Checker
uses: lycheeverse/lychee-action@v1.8.0
with:
fail: true
- name: Link Checker
uses: lycheeverse/lychee-action@v1.8.0
with:
fail: true
82 changes: 41 additions & 41 deletions .github/workflows/ci-main.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
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/checkout@v4.2.1
- uses: actions/setup-node@v4.0.3
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/checkout@v4.2.1
- uses: actions/setup-node@v4.0.3
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

local-integration-tests:
runs-on: ubuntu-latest
permissions: read-all
strategy:
fail-fast: true
matrix:
browser: [headlessChrome, headlessFirefox]
steps:
- name: Checkout
uses: actions/checkout@v4.2.1
- uses: actions/setup-node@v4.0.3
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/checkout@v4.2.1
- uses: actions/setup-node@v4.0.3
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
162 changes: 81 additions & 81 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,88 +1,88 @@
name: Continuous Integration
on:
pull_request:
pull_request:
permissions: read-all

jobs:
unit-tests:
runs-on: ubuntu-latest
permissions: read-all
steps:
- name: Checkout
uses: actions/checkout@v4.2.1
- uses: actions/setup-node@v4.0.3
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
- name: Unit test (nodejs)
run: npm run test:unit:ci-node
unit-tests:
runs-on: ubuntu-latest
permissions: read-all
steps:
- name: Checkout
uses: actions/checkout@v4.2.1
- uses: actions/setup-node@v4.0.3
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
- name: Unit test (nodejs)
run: npm run test:unit:ci-node

saucelabs-integration-tests:
runs-on: ubuntu-latest
permissions: read-all
environment: integration
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
SAUCE_TUNNEL_ID: ${{ secrets.SAUCE_TUNNEL_ID }}
strategy:
fail-fast: false
matrix:
browser: [edge]
steps:
- name: Setup sauce connect
uses: saucelabs/sauce-connect-action@v2.3.4
with:
username: ${{ secrets.SAUCE_USERNAME }}
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
tunnelName: ${{ secrets.SAUCE_TUNNEL_ID }}
- name: Checkout
uses: actions/checkout@v4.2.1
- uses: actions/setup-node@v4.0.3
with:
node-version: '18'
cache: 'npm'
- run: npm ci
- run: npm run compile
- name: Add to hosts file
run: echo "127.0.0.1 local.test" | sudo tee -a /etc/hosts
- name: Run integration tests in Saucelabs
run: npm run test:integration:remote -- --env ${{ matrix.browser }}
timeout-minutes: 15
saucelabs-integration-tests:
runs-on: ubuntu-latest
permissions: read-all
environment: integration
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
SAUCE_TUNNEL_ID: ${{ secrets.SAUCE_TUNNEL_ID }}
strategy:
fail-fast: false
matrix:
browser: [edge]
steps:
- name: Setup sauce connect
uses: saucelabs/sauce-connect-action@v2.3.4
with:
username: ${{ secrets.SAUCE_USERNAME }}
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
tunnelName: ${{ secrets.SAUCE_TUNNEL_ID }}
- name: Checkout
uses: actions/checkout@v4.2.1
- uses: actions/setup-node@v4.0.3
with:
node-version: '18'
cache: 'npm'
- run: npm ci
- run: npm run compile
- name: Add to hosts file
run: echo "127.0.0.1 local.test" | sudo tee -a /etc/hosts
- name: Run integration tests in Saucelabs
run: npm run test:integration:remote -- --env ${{ matrix.browser }}
timeout-minutes: 15

local-integration-tests:
runs-on: ubuntu-latest
permissions: read-all
strategy:
fail-fast: false
matrix:
browser: [headlessChrome, headlessFirefox]
steps:
- name: Checkout
uses: actions/checkout@v4.2.1
- uses: actions/setup-node@v4.0.3
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
- name: Upload test logs
uses: actions/upload-artifact@v3.1.2
if: ${{ failure() }}
with:
name: test-results ${{ matrix.browser }}
path: |
packages/web/tests_output/
packages/web/logs/
local-integration-tests:
runs-on: ubuntu-latest
permissions: read-all
strategy:
fail-fast: false
matrix:
browser: [headlessChrome, headlessFirefox]
steps:
- name: Checkout
uses: actions/checkout@v4.2.1
- uses: actions/setup-node@v4.0.3
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
- name: Upload test logs
uses: actions/upload-artifact@v3.1.2
if: ${{ failure() }}
with:
name: test-results ${{ matrix.browser }}
path: |
packages/web/tests_output/
packages/web/logs/
50 changes: 25 additions & 25 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: "CLA Assistant"
name: 'CLA Assistant'
on:
issue_comment:
types: [created]
pull_request_target:
types: [opened, closed, synchronize]
issue_comment:
types: [created]
pull_request_target:
types: [opened, closed, synchronize]

permissions:
actions: write
contents: read
pull-requests: write
statuses: write
actions: write
contents: read
pull-requests: write
statuses: write

jobs:
ContributorLicenseAgreement:
runs-on: ubuntu-latest
steps:
- name: "CLA Assistant"
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
uses: cla-assistant/github-action@v2.3.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERSONAL_ACCESS_TOKEN: ${{ secrets.PAT_CLATOOL }}
with:
remote-organization-name: splunk
remote-repository-name: cla-agreement
branch: main
path-to-signatures: signatures/version1/cla.json
path-to-document: https://github.com/splunk/cla-agreement/blob/main/CLA.md
allowlist: dependabot[bot]
ContributorLicenseAgreement:
runs-on: ubuntu-latest
steps:
- name: 'CLA Assistant'
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
uses: cla-assistant/github-action@v2.3.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERSONAL_ACCESS_TOKEN: ${{ secrets.PAT_CLATOOL }}
with:
remote-organization-name: splunk
remote-repository-name: cla-agreement
branch: main
path-to-signatures: signatures/version1/cla.json
path-to-document: https://github.com/splunk/cla-agreement/blob/main/CLA.md
allowlist: dependabot[bot]
Loading

0 comments on commit fbdd616

Please sign in to comment.