-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Install prettier * Add prettier config * Add .prettierignore * Fix lint issues (prettier) * Pin release tag of the eslint config * Use semicolons, to be consistent with other repos * Bring back semicolons (prettier)
- Loading branch information
Showing
272 changed files
with
16,057 additions
and
16,343 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 |
---|---|---|
@@ -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' |
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,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' |
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,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 |
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,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 |
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,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 |
Oops, something went wrong.