Skip to content

Commit 4ac45d4

Browse files
committed
Merge branch 'main' of https://github.com/HTTPArchive/almanac.httparchive.org into production
2 parents 77226c3 + 1d0fd29 commit 4ac45d4

34 files changed

Lines changed: 4679 additions & 4972 deletions

.github/lighthouse/lighthouse-config-dev.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"assert": {
44
"preset": "lighthouse:recommended",
55
"assertions": {
6+
"bf-cache": "off",
67
"bootup-time": "off",
78
"canonical": "off",
89
"dom-size": "off",

.github/lighthouse/lighthouse-config-prod.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"categories:accessibility": ["error", {"minScore": 1}],
77
"categories:best-practices": ["error", {"minScore": 0.92}],
88
"categories:seo": ["error", {"minScore": 1}],
9+
"bf-cache": "off",
910
"bootup-time": "off",
1011
"dom-size": "off",
1112
"first-contentful-paint": "off",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
uses: actions/checkout@v3
3636
- name: Set up Python 3.8
3737
if: ${{ matrix.language == 'python' }}
38-
uses: actions/setup-python@v4.5.0
38+
uses: actions/setup-python@v4.6.0
3939
with:
4040
python-version: '3.8'
4141
- name: Install dependencies

.github/workflows/compress-images.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
github.event_name != 'pull_request' &&
5858
steps.calibre.outputs.markdown != ''
5959
id: cpr
60-
uses: peter-evans/create-pull-request@v4
60+
uses: peter-evans/create-pull-request@v5
6161
with:
6262
title: Auto Compress Images
6363
branch-suffix: timestamp

.github/workflows/linter.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ jobs:
3131
run: |
3232
echo "VALIDATE_ALL_CODEBASE=false" >> $GITHUB_ENV
3333
- name: Lint Code Base
34-
uses: github/super-linter@v4.10.1
35-
#uses: docker://github/super-linter:v4.7.1
34+
uses: github/super-linter/slim@v4.10.1
3635
env:
3736
DEFAULT_BRANCH: main
3837
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/lintsql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
# Full git history is needed to get a proper list of changed files within `super-linter`
2020
fetch-depth: 0
2121
- name: Set up Python 3.8
22-
uses: actions/setup-python@v4.5.0
22+
uses: actions/setup-python@v4.6.0
2323
with:
2424
python-version: '3.8'
2525
- name: Lint SQL code

.github/workflows/predeploy.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# A pre-deploy script that must be run in GitHub Actions to:
66
# - Update timestamps and hashes
77
# - Generate the ebooks
8+
# - Upload ebooks as artifacts
89
# - Submit a Pull Request with the changes
910
#
1011
# This should be run before every release
@@ -36,7 +37,7 @@ jobs:
3637
with:
3738
node-version: '16'
3839
- name: Set up Python 3.8
39-
uses: actions/setup-python@v4.5.0
40+
uses: actions/setup-python@v4.6.0
4041
with:
4142
python-version: '3.8'
4243
- name: Install Asian Fonts
@@ -63,19 +64,27 @@ jobs:
6364
run: |
6465
cd src
6566
npm run ebooks
67+
- name: Upload PDF artifact
68+
if: ${{ github.event.inputs.ebooks == 'true' }}
69+
uses: actions/upload-artifact@v3
70+
with:
71+
name: pdfs
72+
path: ./src/static/pdfs/*.pdf
73+
if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn`
74+
retention-days: 5 # defaults to 90
6675
- name: Update timestamps
6776
run: |
6877
cd src
6978
npm run timestamps
7079
- name: Create Pull Request
7180
id: cpr
72-
uses: peter-evans/create-pull-request@v4
81+
uses: peter-evans/create-pull-request@v5
7382
with:
7483
title: Pre-deploy Updates
7584
branch-suffix: timestamp
76-
commit-message: Update Timestamps and Generate Ebooks
85+
commit-message: Update Timestamps
7786
body: |
78-
Updated Timestamps and Regenerated Ebooks through GitHub action
87+
Updated Timestamps through GitHub action
7988
- Auto-generated by [create-pull-request][1] GitHub Action
8089
8190
[1]: https://github.com/peter-evans/create-pull-request

.github/workflows/production-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
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
31-
uses: treosh/lighthouse-ci-action@9.6.8
31+
uses: treosh/lighthouse-ci-action@10.1.0
3232
id: LHCIAction
3333
with:
3434
# For prod, we simply check for 100% in Accessibility, Best Practices and SEO

.github/workflows/test_website.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
with:
3131
node-version: '16'
3232
- name: Set up Python 3.8
33-
uses: actions/setup-python@v4.5.0
33+
uses: actions/setup-python@v4.6.0
3434
with:
3535
python-version: '3.8'
3636
- name: Run the website
@@ -40,7 +40,7 @@ jobs:
4040
- name: Use more complete checks for generated HTML linting
4141
run: cp -f .github/linters/.htmlhintrc_morechecks .github/linters/.htmlhintrc
4242
- name: Lint Generated HTML
43-
uses: github/super-linter@v4.10.1
43+
uses: github/super-linter/slim@v4.10.1
4444
env:
4545
DEFAULT_BRANCH: main
4646
FILTER_REGEX_INCLUDE: src/static/html/.*
@@ -53,7 +53,7 @@ jobs:
5353
COMMIT_SHA: ${{ github.sha }}
5454
run: ./src/tools/scripts/set_lighthouse_urls.sh
5555
- name: Audit URLs using Lighthouse
56-
uses: treosh/lighthouse-ci-action@9.6.8
56+
uses: treosh/lighthouse-ci-action@10.1.0
5757
id: LHCIAction
5858
with:
5959
# For dev, turn off all timing perf audits (too unreliable) and a few others that don't work on dev

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ env/
44
*.log
55
*.pyc
66
**/.DS_Store
7+
src/static/pdfs/
8+
.env

0 commit comments

Comments
 (0)