Skip to content

Bump markdown from 3.9 to 3.10 #1191

Bump markdown from 3.9 to 3.10

Bump markdown from 3.9 to 3.10 #1191

Workflow file for this run

########################################
## Custom HTTP Archive GitHub action ##
#######################################
#
# This generates snd tests the website when a pull request is
# opened (or added to) on the original repo
#
name: Test Website
on:
workflow_dispatch:
pull_request:
jobs:
build:
name: Build and Test Website
runs-on: ubuntu-latest
if: github.repository == 'HTTPArchive/httparchive.org'
steps:
- name: Checkout branch
uses: actions/checkout@v5
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
- name: Setup Node.js for use with actions
uses: actions/setup-node@v6
with:
node-version: '20'
- name: Set up Python 3.12
uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Run the website
run: ./tools/scripts/run_and_test_website.sh
- name: Remove node modules to avoid linting errors
run: rm -rf node_modules
- name: Use more complete checks for generated HTML linting
run: cp -f .github/linters/.htmlhintrc_morechecks .github/linters/.htmlhintrc
- name: Lint Generated HTML
uses: super-linter/super-linter/slim@v8
env:
FILTER_REGEX_INCLUDE: static/html/.*
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_HTML: true
USE_FIND_ALGORITHM: true
- name: Set the list of URLs for Lighthouse to check
env:
RUN_TYPE: ${{ github.event_name }}
COMMIT_SHA: ${{ github.sha }}
run: ./tools/scripts/set_lighthouse_urls.sh
- name: Audit URLs using Lighthouse
uses: treosh/[email protected]
id: LHCIAction
with:
# For dev, turn off all timing perf audits (too unreliable) and a few others that don't work on dev
configPath: .github/lighthouse/lighthouse-config-dev.json
uploadArtifacts: true # save results as an action artifacts
temporaryPublicStorage: true # upload lighthouse report to the temporary storage
- name: Show Lighthouse outputs
run: |
# All results by URL:
echo '${{ steps.LHCIAction.outputs.manifest }}' | jq -r '.[] | (.summary|tostring) + " - " + .url'
dependabot:
name: Dependabot auto-merge
runs-on: ubuntu-latest
needs: build
if: |
github.event.pull_request.user.login == 'dependabot[bot]' &&
github.repository == 'HTTPArchive/httparchive.org'
permissions:
contents: write
pull-requests: write
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
if: |
(
steps.metadata.outputs.update-type == 'version-update:semver-patch' ||
steps.metadata.outputs.update-type == 'version-update:semver-minor'
) && !contains(steps.metadata.outputs.dependency-names, 'super-linter')
run: gh pr merge --squash --auto "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}