Skip to content

Commit

Permalink
Fix lint issues (prettier)
Browse files Browse the repository at this point in the history
  • Loading branch information
muodov committed Nov 4, 2024
1 parent 6f89424 commit f0d3de7
Show file tree
Hide file tree
Showing 260 changed files with 7,448 additions and 7,876 deletions.
64 changes: 32 additions & 32 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 20
target-branch: "main"
labels:
- "dependencies"
groups:
types:
patterns:
- "@types/*"
test:
patterns:
- "karma*"
- "@playwright/*"
- "timekeeper"
build:
patterns:
- "@duckduckgo/eslint-config"
- "eslint*"
- "sass"
- "esbuild"
- "yargs"
- "web-ext"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
target-branch: "main"
labels:
- "dependencies"
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'
open-pull-requests-limit: 20
target-branch: 'main'
labels:
- 'dependencies'
groups:
types:
patterns:
- '@types/*'
test:
patterns:
- 'karma*'
- '@playwright/*'
- 'timekeeper'
build:
patterns:
- '@duckduckgo/eslint-config'
- 'eslint*'
- 'sass'
- 'esbuild'
- 'yargs'
- 'web-ext'
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'
target-branch: 'main'
labels:
- 'dependencies'
42 changes: 21 additions & 21 deletions .github/workflows/asana.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
name: 'Asana Sync'
on:
pull_request_review:
pull_request_target:
types:
- opened
- edited
- closed
- reopened
- synchronize
- review_requested
pull_request_review:
pull_request_target:
types:
- opened
- edited
- closed
- reopened
- synchronize
- review_requested

jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: sammacbeth/action-asana-sync@v6
with:
ASANA_ACCESS_TOKEN: ${{ secrets.ASANA_ACCESS_TOKEN }}
ASANA_WORKSPACE_ID: ${{ secrets.ASANA_WORKSPACE_ID }}
ASANA_PROJECT_ID: '312629933896096'
move_to_section_id: '1138897367676525'
USER_MAP: ${{ vars.USER_MAP }}
NO_AUTOCLOSE_PROJECTS: '312629933896096'
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: sammacbeth/action-asana-sync@v6
with:
ASANA_ACCESS_TOKEN: ${{ secrets.ASANA_ACCESS_TOKEN }}
ASANA_WORKSPACE_ID: ${{ secrets.ASANA_WORKSPACE_ID }}
ASANA_PROJECT_ID: '312629933896096'
move_to_section_id: '1138897367676525'
USER_MAP: ${{ vars.USER_MAP }}
NO_AUTOCLOSE_PROJECTS: '312629933896096'
78 changes: 39 additions & 39 deletions .github/workflows/beta.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
name: Beta Release

on:
workflow_dispatch:
workflow_dispatch:

jobs:
chrome_beta:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'

- name: Install dependencies
run: |
npm run install-ci
- name: Fetch config and update version
run: |
npm run bundle-config
node scripts/bumpVersion.js $(date "+%Y.%m.%d")
echo "VERSION=$(jq -r .version ./browsers/chrome/manifest.json)" >> $GITHUB_ENV
- name: Commit config and version updates
uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842
with:
commit_message: "Prepare release ${{ env.VERSION }}"
create_branch: true
branch: "release/beta/${{ env.VERSION }}"

- name: Build Chrome Beta
run: |
npm run beta-chrome
- name: Publish to Chrome Store
env:
CWS_CLIENT_ID: ${{ secrets.CWS_CLIENT_ID }}
CWS_CLIENT_SECRET: ${{ secrets.CWS_CLIENT_SECRET }}
CWS_REFRESH_TOKEN: ${{ secrets.CWS_REFRESH_TOKEN }}
run: |
bash ./scripts/chrome-store-publish.sh ${{ secrets.CWS_BETA_EXTENSION_ID }} ./build/chrome/release/chrome-release-*.zip
chrome_beta:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'

- name: Install dependencies
run: |
npm run install-ci
- name: Fetch config and update version
run: |
npm run bundle-config
node scripts/bumpVersion.js $(date "+%Y.%m.%d")
echo "VERSION=$(jq -r .version ./browsers/chrome/manifest.json)" >> $GITHUB_ENV
- name: Commit config and version updates
uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842
with:
commit_message: 'Prepare release ${{ env.VERSION }}'
create_branch: true
branch: 'release/beta/${{ env.VERSION }}'

- name: Build Chrome Beta
run: |
npm run beta-chrome
- name: Publish to Chrome Store
env:
CWS_CLIENT_ID: ${{ secrets.CWS_CLIENT_ID }}
CWS_CLIENT_SECRET: ${{ secrets.CWS_CLIENT_SECRET }}
CWS_REFRESH_TOKEN: ${{ secrets.CWS_REFRESH_TOKEN }}
run: |
bash ./scripts/chrome-store-publish.sh ${{ secrets.CWS_BETA_EXTENSION_ID }} ./build/chrome/release/chrome-release-*.zip
124 changes: 62 additions & 62 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,70 +1,70 @@
name: Check

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

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm run install-ci
- run: npm run lint
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm run install-ci
- run: npm run lint

build:
strategy:
matrix:
version: [20]
os: [ubuntu-latest, macos-latest]
target: ['release-firefox', 'release-chrome']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.version }}
cache: 'npm'
- run: npm run ${{ matrix.target }}
build:
strategy:
matrix:
version: [20]
os: [ubuntu-latest, macos-latest]
target: ['release-firefox', 'release-chrome']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.version }}
cache: 'npm'
- run: npm run ${{ matrix.target }}

unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm run install-ci
- run: npm test
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm run install-ci
- run: npm test

playwright-tests:
timeout-minutes: 14
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
test: [playwright, playwright-mv2]
shard: [1/4, 2/4, 3/4, 4/4]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm run install-ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps chromium
- name: Run tests
run: xvfb-run --auto-servernum -- npm run ${{ matrix.test }} -- --shard ${{ matrix.shard }}
- uses: actions/upload-artifact@v4
if: always()
with:
name: ${{ matrix.test }}-report
path: playwright-report/
retention-days: 1
playwright-tests:
timeout-minutes: 14
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
test: [playwright, playwright-mv2]
shard: [1/4, 2/4, 3/4, 4/4]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm run install-ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps chromium
- name: Run tests
run: xvfb-run --auto-servernum -- npm run ${{ matrix.test }} -- --shard ${{ matrix.shard }}
- uses: actions/upload-artifact@v4
if: always()
with:
name: ${{ matrix.test }}-report
path: playwright-report/
retention-days: 1
58 changes: 29 additions & 29 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
name: "CodeQL"
name: 'CodeQL'

on:
push:
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
schedule:
- cron: '40 11 * * 5'
push:
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
branches: [main]
schedule:
- cron: '40 11 * * 5'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
strategy:
fail-fast: false
matrix:
language: ['javascript']

steps:
- name: Checkout repository
uses: actions/checkout@v4
steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
Loading

0 comments on commit f0d3de7

Please sign in to comment.