Skip to content

Commit 55a6cd2

Browse files
committed
Merge branch 'main' into production
2 parents 7992cc9 + cba064b commit 55a6cd2

File tree

2,580 files changed

+12952
-1023
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,580 files changed

+12952
-1023
lines changed

.github/workflows/check-translations-lengths.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ jobs:
3131
runs-on: ubuntu-latest
3232
steps:
3333
- name: Checkout Code
34-
uses: actions/checkout@v5
34+
uses: actions/checkout@v6
3535
with:
3636
path: this_run
3737
# Full git history is needed to get a proper list of changed files
3838
fetch-depth: 0
3939
- name: Checkout Code
4040
if: github.event_name == 'pull_request'
41-
uses: actions/checkout@v5
41+
uses: actions/checkout@v6
4242
with:
4343
path: original
4444
ref: main

.github/workflows/code-static-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ jobs:
3232
language: ['javascript', 'python']
3333
steps:
3434
- name: Checkout repository
35-
uses: actions/checkout@v5
35+
uses: actions/checkout@v6
3636
- name: Set up Python 3.12
3737
if: ${{ matrix.language == 'python' }}
38-
uses: actions/setup-python@v5
38+
uses: actions/setup-python@v6
3939
with:
4040
python-version: '3.12'
4141
- name: Install dependencies
@@ -47,11 +47,11 @@ jobs:
4747
# that includes the dependencies
4848
echo "CODEQL_PYTHON=$(which python)" >> $GITHUB_ENV
4949
- name: Initialize CodeQL
50-
uses: github/codeql-action/init@v3
50+
uses: github/codeql-action/init@v4
5151
with:
5252
config-file: ./.github/codeql/codeql-config.yml
5353
queries: +security-and-quality
5454
setup-python-dependencies: false
5555
languages: '${{ matrix.language }}'
5656
- name: Perform CodeQL Analysis
57-
uses: github/codeql-action/analyze@v3
57+
uses: github/codeql-action/analyze@v4

.github/workflows/compress-images.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ on:
2222
- '**.jpeg'
2323
- '**.png'
2424
- '**.webp'
25+
- '**.avif'
2526
pull_request:
2627
paths:
2728
- '**.jpg'
2829
- '**.jpeg'
2930
- '**.png'
3031
- '**.webp'
32+
- '**.avif'
3133
workflow_dispatch:
3234
schedule:
3335
# Run a full compression every Sunday at 11pm to start the week right
@@ -43,12 +45,12 @@ jobs:
4345
github.event.pull_request.head.repo.full_name == github.repository)
4446
steps:
4547
- name: Checkout Branch
46-
uses: actions/checkout@v5
48+
uses: actions/checkout@v6
4749
- name: Run Image Compression
4850
id: calibre
4951
uses: calibreapp/image-actions@main
5052
with:
51-
githubToken: ${{ secrets.GITHUB_TOKEN }}
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5254
compressOnly: ${{ github.event_name != 'pull_request' }}
5355
jpegProgressive: true
5456
- name: Create Pull Request

.github/workflows/linter.yml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout Code
22-
uses: actions/checkout@v5
22+
uses: actions/checkout@v6
2323
with:
2424
# Full git history is needed to get a proper list of changed files within `super-linter`
2525
fetch-depth: 0
@@ -44,5 +44,37 @@ jobs:
4444
VALIDATE_MARKDOWN: true
4545
VALIDATE_PYTHON_PYLINT: true
4646
VALIDATE_PYTHON_FLAKE8: true
47-
VALIDATE_SQLFLUFF: true
4847
VALIDATE_YAML: true
48+
49+
dependabot:
50+
name: Dependabot auto-merge
51+
runs-on: ubuntu-latest
52+
needs: lint
53+
if: |
54+
github.event.pull_request.user.login == 'dependabot[bot]' &&
55+
github.repository == 'HTTPArchive/almanac.httparchive.org'
56+
57+
permissions:
58+
contents: write
59+
pull-requests: write
60+
61+
steps:
62+
- name: Dependabot metadata
63+
id: metadata
64+
uses: dependabot/fetch-metadata@v2
65+
with:
66+
github-token: "${{ secrets.GITHUB_TOKEN }}"
67+
68+
- name: Enable auto-merge for Dependabot PRs
69+
if: |
70+
(
71+
steps.metadata.outputs.update-type == 'version-update:semver-patch' ||
72+
steps.metadata.outputs.update-type == 'version-update:semver-minor'
73+
) && (
74+
contains(steps.metadata.outputs.dependency-names, 'prettier') ||
75+
contains(steps.metadata.outputs.dependency-names, 'super-linter')
76+
)
77+
run: gh pr merge --admin --squash "$PR_URL"
78+
env:
79+
PR_URL: ${{github.event.pull_request.html_url}}
80+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/lintsql.yml

Lines changed: 46 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,63 @@ on:
77
workflow_dispatch:
88
pull_request:
99
paths:
10-
src/requirements.txt
10+
- src/requirements.txt
11+
- 'sql/**.sql'
1112
jobs:
1213
lint:
1314
name: Lint SQL
1415
runs-on: ubuntu-latest
1516
steps:
1617
- name: Checkout Code
17-
uses: actions/checkout@v5
18+
uses: actions/checkout@v6
1819
with:
1920
# Full git history is needed to get a proper list of changed files within `super-linter`
2021
fetch-depth: 0
2122
- name: Set up Python 3.12
22-
uses: actions/setup-python@v5
23+
uses: actions/setup-python@v6
2324
with:
2425
python-version: '3.12'
2526
- name: Lint SQL code
26-
if: |
27-
github.event_name == 'workflow_dispatch' ||
28-
startsWith(github.event.pull_request.title,'Bump sqlfluff') == true
2927
run: |
30-
pip install -r src/requirements.txt
31-
sqlfluff lint sql -p 4
28+
pip install -r src/requirements.txt -q
29+
if [ "${{ github.event_name }}" == "workflow_dispatch" ] || \
30+
[[ "${{ github.event.pull_request.title }}" == Bump\ sqlfluff* ]]; then
31+
# Lint all SQL files for workflow_dispatch or sqlfluff bumps
32+
sqlfluff lint sql -p 4
33+
else
34+
# Lint only changed SQL files
35+
git diff --name-only --diff-filter=ACMRT origin/${{ github.base_ref }}...HEAD \
36+
| grep '\.sql$' \
37+
| xargs -r sqlfluff lint
38+
fi
39+
40+
41+
dependabot:
42+
name: Dependabot auto-merge
43+
runs-on: ubuntu-latest
44+
needs: lint
45+
if: |
46+
github.event.pull_request.user.login == 'dependabot[bot]' &&
47+
github.repository == 'HTTPArchive/almanac.httparchive.org'
48+
49+
permissions:
50+
contents: write
51+
pull-requests: write
52+
53+
steps:
54+
- name: Dependabot metadata
55+
id: metadata
56+
uses: dependabot/fetch-metadata@v2
57+
with:
58+
github-token: "${{ secrets.GITHUB_TOKEN }}"
59+
60+
- name: Enable auto-merge for Dependabot PRs
61+
if: |
62+
(
63+
steps.metadata.outputs.update-type == 'version-update:semver-patch' ||
64+
steps.metadata.outputs.update-type == 'version-update:semver-minor'
65+
) && contains(steps.metadata.outputs.dependency-names, 'sqlfluff')
66+
run: gh pr merge --admin --squash "$PR_URL"
67+
env:
68+
PR_URL: ${{github.event.pull_request.html_url}}
69+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/predeploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ jobs:
3131
runs-on: ubuntu-latest
3232
steps:
3333
- name: Checkout branch
34-
uses: actions/checkout@v5
34+
uses: actions/checkout@v6
3535
- name: Setup Node.js for use with actions
36-
uses: actions/setup-node@v4
36+
uses: actions/setup-node@v6
3737
with:
3838
node-version: '20'
3939
- name: Set up Python 3.12
40-
uses: actions/setup-python@v5
40+
uses: actions/setup-python@v6
4141
with:
4242
python-version: '3.12'
4343
- name: Install Asian Fonts
@@ -67,7 +67,7 @@ jobs:
6767
npm run ebooks
6868
- name: Upload PDF artifact
6969
if: ${{ github.event.inputs.ebooks == 'true' }}
70-
uses: actions/upload-artifact@v4
70+
uses: actions/upload-artifact@v5
7171
with:
7272
name: pdfs
7373
path: ./src/static/pdfs/*.pdf

.github/workflows/production-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
if: github.repository == 'HTTPArchive/almanac.httparchive.org'
2525
steps:
2626
- name: Checkout branch
27-
uses: actions/checkout@v5
27+
uses: actions/checkout@v6
2828
- name: Set the list of URLs for Lighthouse to check
2929
run: ./src/tools/scripts/set_lighthouse_urls.sh -p
3030
- name: Audit URLs using Lighthouse

.github/workflows/progress-tracker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
if: github.repository == 'HTTPArchive/almanac.httparchive.org'
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/github-script@v7
23+
- uses: actions/github-script@v8
2424
if: github.event_name == 'workflow_dispatch' || contains(github.event.issue.labels.*.name, env.FILTER_LABEL)
2525
with:
2626
# yamllint disable rule:line-length

.github/workflows/test-template-changes.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ jobs:
2929
if: github.repository == 'HTTPArchive/almanac.httparchive.org'
3030
steps:
3131
- name: Checkout Code
32-
uses: actions/checkout@v5
32+
uses: actions/checkout@v6
3333
with:
3434
fetch-depth: 0
3535
- name: Setup Node.js for use with actions
36-
uses: actions/setup-node@v4
36+
uses: actions/setup-node@v6
3737
with:
3838
node-version: '20'
3939
- name: Test Template Changes
4040
run: ./src/tools/scripts/test_template_changes.sh
4141
- name: 'Comment PR'
42-
uses: actions/github-script@v7
42+
uses: actions/github-script@v8
4343
if: github.event_name == 'pull_request' && env.PR_COMMENT != ''
4444
with:
4545
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test_website.yml

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ jobs:
2121
if: github.repository == 'HTTPArchive/almanac.httparchive.org'
2222
steps:
2323
- name: Checkout branch
24-
uses: actions/checkout@v5
24+
uses: actions/checkout@v6
2525
with:
2626
# Full git history is needed to get a proper list of changed files within `super-linter`
2727
fetch-depth: 0
2828
- name: Setup Node.js for use with actions
29-
uses: actions/setup-node@v4
29+
uses: actions/setup-node@v6
3030
with:
3131
node-version: '20'
3232
- name: Set up Python 3.12
33-
uses: actions/setup-python@v5
33+
uses: actions/setup-python@v6
3434
with:
3535
python-version: '3.12'
3636
- name: Run the website
@@ -42,9 +42,9 @@ jobs:
4242
- name: Lint Generated HTML
4343
uses: super-linter/super-linter/slim@v8
4444
env:
45-
DEFAULT_BRANCH: main
4645
FILTER_REGEX_INCLUDE: src/static/html/.*
4746
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
LOG_LEVEL: DEBUG
4848
VALIDATE_HTML: true
4949
USE_FIND_ALGORITHM: true
5050
- name: Set the list of URLs for Lighthouse to check
@@ -64,3 +64,37 @@ jobs:
6464
run: |
6565
# All results by URL:
6666
echo '${{ steps.LHCIAction.outputs.manifest }}' | jq -r '.[] | (.summary|tostring) + " - " + .url'
67+
68+
dependabot:
69+
name: Dependabot auto-merge
70+
runs-on: ubuntu-latest
71+
needs: build
72+
if: |
73+
github.event.pull_request.user.login == 'dependabot[bot]' &&
74+
github.repository == 'HTTPArchive/almanac.httparchive.org'
75+
76+
permissions:
77+
contents: write
78+
pull-requests: write
79+
80+
steps:
81+
- name: Dependabot metadata
82+
id: metadata
83+
uses: dependabot/fetch-metadata@v2
84+
with:
85+
github-token: "${{ secrets.GITHUB_TOKEN }}"
86+
87+
- name: Enable auto-merge for Dependabot PRs
88+
if: |
89+
(
90+
steps.metadata.outputs.update-type == 'version-update:semver-patch' ||
91+
steps.metadata.outputs.update-type == 'version-update:semver-minor'
92+
) && !(
93+
contains(steps.metadata.outputs.dependency-names, 'prettier') ||
94+
contains(steps.metadata.outputs.dependency-names, 'sqlfluff') ||
95+
contains(steps.metadata.outputs.dependency-names, 'super-linter')
96+
)
97+
run: gh pr merge --squash --auto "$PR_URL"
98+
env:
99+
PR_URL: ${{github.event.pull_request.html_url}}
100+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)