Skip to content

Commit 5051e39

Browse files
author
Firefox Profiler [bot]
committed
πŸ”ƒ Daily sync: main -> l10n (November 8, 2025)
2 parents 2109601 + b76dc8c commit 5051e39

File tree

35 files changed

+750
-716
lines changed

35 files changed

+750
-716
lines changed

β€Ž.circleci/config.ymlβ€Ž

Lines changed: 0 additions & 132 deletions
This file was deleted.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "Firefox Profiler",
3+
"image": "mcr.microsoft.com/devcontainers/javascript-node:22",
4+
"features": {
5+
"ghcr.io/devcontainers/features/node:1": {
6+
"version": "22"
7+
}
8+
},
9+
"forwardPorts": [4242],
10+
"portsAttributes": {
11+
"4242": {
12+
"label": "Firefox Profiler",
13+
"onAutoForward": "openBrowser"
14+
}
15+
},
16+
"postCreateCommand": "yarn install",
17+
"postStartCommand": "FX_PROFILER_HOST=\"0.0.0.0\" yarn start",
18+
"customizations": {
19+
"vscode": {
20+
"extensions": [
21+
"dbaeumer.vscode-eslint",
22+
"esbenp.prettier-vscode",
23+
"stylelint.vscode-stylelint"
24+
],
25+
"settings": {
26+
"editor.formatOnSave": true,
27+
"editor.defaultFormatter": "esbenp.prettier-vscode"
28+
}
29+
}
30+
}
31+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: 'Setup Node.js and Install Dependencies'
2+
description: 'Setup Node.js with caching and install dependencies'
3+
runs:
4+
using: 'composite'
5+
steps:
6+
- name: Setup Node.js
7+
uses: actions/setup-node@v6
8+
with:
9+
node-version: '22.14'
10+
cache: 'yarn'
11+
12+
- name: Install dependencies
13+
shell: bash
14+
run: yarn install --frozen-lockfile

β€Ž.github/workflows/ci.ymlβ€Ž

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- production
8+
pull_request:
9+
10+
jobs:
11+
lint:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v5
16+
17+
- name: Setup Node.js and install dependencies
18+
uses: ./.github/actions/setup-node-and-install
19+
20+
- name: Run lint
21+
run: yarn lint
22+
23+
tests:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v5
28+
29+
- name: Setup Node.js and install dependencies
30+
uses: ./.github/actions/setup-node-and-install
31+
32+
- name: Run tests
33+
# We use workerIdleMemoryLimit to work around a memory issue with node.
34+
# See https://github.com/facebook/jest/issues/11956
35+
run: yarn test --coverage --logHeapUsage -w=4 --workerIdleMemoryLimit=1.5G
36+
37+
- name: Upload coverage to Codecov
38+
uses: codecov/codecov-action@v5
39+
with:
40+
fail_ci_if_error: false
41+
42+
build-prod:
43+
runs-on: ubuntu-latest
44+
steps:
45+
- name: Checkout code
46+
uses: actions/checkout@v5
47+
48+
- name: Setup Node.js and install dependencies
49+
uses: ./.github/actions/setup-node-and-install
50+
51+
- name: Build production
52+
run: yarn build-prod:quiet
53+
54+
- name: Build symbolicator CLI
55+
run: yarn build-symbolicator-cli:quiet
56+
57+
licence-check:
58+
runs-on: ubuntu-latest
59+
steps:
60+
- name: Checkout code
61+
uses: actions/checkout@v5
62+
63+
- name: Setup Node.js and install dependencies
64+
uses: ./.github/actions/setup-node-and-install
65+
66+
- name: Run license check
67+
run: yarn license-check
68+
69+
typecheck:
70+
runs-on: ubuntu-latest
71+
steps:
72+
- name: Checkout code
73+
uses: actions/checkout@v5
74+
75+
- name: Setup Node.js and install dependencies
76+
uses: ./.github/actions/setup-node-and-install
77+
78+
- name: Run TypeScript check
79+
run: yarn ts
80+
81+
alex:
82+
runs-on: ubuntu-latest
83+
steps:
84+
- name: Checkout code
85+
uses: actions/checkout@v5
86+
87+
- name: Setup Node.js and install dependencies
88+
uses: ./.github/actions/setup-node-and-install
89+
90+
- name: Run alex
91+
run: yarn test-alex
92+
93+
yarn-lock:
94+
runs-on: ubuntu-latest
95+
steps:
96+
- name: Checkout code
97+
uses: actions/checkout@v5
98+
99+
- name: Setup Node.js and install dependencies
100+
uses: ./.github/actions/setup-node-and-install
101+
102+
- name: Check yarn.lock
103+
run: yarn test-lockfile
104+
105+
shellcheck:
106+
runs-on: ubuntu-latest
107+
steps:
108+
- name: Checkout code
109+
uses: actions/checkout@v5
110+
111+
- name: Run ShellCheck
112+
uses: ludeeus/action-shellcheck@master
113+
with:
114+
scandir: './bin'
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
push:
44
paths:
55
- 'locales/en-US/*.ftl'
6-
- '.github/workflows/fluent_linter.yml'
6+
- '.github/workflows/fluent-linter.yml'
77
- '.github/fluent/*'
88
branches:
99
- main
@@ -32,4 +32,4 @@ jobs:
3232
pip install -r .github/fluent/requirements.txt
3333
- name: Lint reference
3434
run: |
35-
moz-fluent-lint ./locales/en-US --config .github/fluent/linter_config.yml
35+
moz-fluent-lint ./locales/en-US --config .github/fluent/linter-config.yml
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: L10n Sync
2+
3+
on:
4+
schedule:
5+
# Runs at 8 AM UTC every day
6+
- cron: '0 8 * * *'
7+
workflow_dispatch:
8+
9+
jobs:
10+
tests:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v5
15+
16+
- name: Setup Node.js and install dependencies
17+
uses: ./.github/actions/setup-node-and-install
18+
19+
- name: Run tests
20+
run: yarn test --logHeapUsage -w=4
21+
22+
l10n-sync:
23+
runs-on: ubuntu-latest
24+
needs: tests
25+
if: github.ref == 'refs/heads/main'
26+
steps:
27+
- name: Checkout code
28+
uses: actions/checkout@v5
29+
with:
30+
ssh-key: ${{ secrets.L10N_SYNC_SSH_KEY }}
31+
# Fetch the full git history since we are going to need it to do some
32+
# git operations between the main and l10n branches.
33+
fetch-depth: 0
34+
35+
- name: Setup Node.js
36+
uses: actions/setup-node@v6
37+
with:
38+
node-version: '22.14'
39+
cache: 'yarn'
40+
41+
- name: Configure git
42+
run: |
43+
git config user.email "[email protected]"
44+
git config user.name "Firefox Profiler [bot]"
45+
46+
- name: Run l10n sync
47+
run: node ./bin/l10n-sync.js -y

β€Ž.gitpod.ymlβ€Ž

Lines changed: 0 additions & 8 deletions
This file was deleted.

β€ŽCONTRIBUTING.mdβ€Ž

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,11 @@ module.exports = function (config, serverConfig) {
5252

5353
This project uses [TypeScript](https://www.typescriptlang.org/).
5454

55-
## Using Gitpod
55+
## Using GitHub Codespaces
5656

57-
Alternatively, you can also develop the Firefox Profiler online in a pre-configured development environment:
57+
Alternatively, you can also develop the Firefox Profiler online in a pre-configured development environment using [GitHub Codespaces](https://github.com/features/codespaces).
5858

59-
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/firefox-devtools/profiler)
60-
61-
Gitpod will automatically install all dependencies; start the webpack server for you; and open the web app in a new browser tab. Please look at our [gitpod documentation](./docs-user/gitpod.md) for more information.
59+
GitHub Codespaces will automatically install all dependencies, start the webpack server for you, and forward port 4242 so you can access the web app. Please look at our [GitHub Codespaces documentation](./docs-developer/codespaces.md) for more information.
6260

6361
## Loading in profiles for development
6462

@@ -93,7 +91,7 @@ When working on a new feature and code changes, it's important that things work
9391
- We have [husky](https://www.npmjs.com/package/husky) installed to run automated checks when committing and pushing.
9492
- Run git commands with `--no-verify` to skip this step. This is useful for submitting broken PRs for feedback.
9593
- Continuous integration for pull requests
96-
- We use CircleCI to run our tests for every PR that is submitted. This gives reviewers a great way to know if things are still working as expected.
94+
- We use GitHub Actions to run our tests for every PR that is submitted. This gives reviewers a great way to know if things are still working as expected.
9795

9896
### Updating snapshots
9997

0 commit comments

Comments
Β (0)