Bump release-drafter/release-drafter from 5.12.1 to 6.0.0 #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
###################################### | |
## Custom Web Almanac GitHub action ## | |
###################################### | |
# | |
# This generates the chapters and 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/almanac.httparchive.org' | |
steps: | |
- name: Checkout branch | |
uses: actions/[email protected] | |
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/[email protected] | |
with: | |
node-version: 12.x | |
- name: Set up Python 3.8 | |
uses: actions/[email protected] | |
with: | |
python-version: '3.8' | |
- name: Run the website | |
run: ./src/tools/scripts/run_and_test_website.sh | |
- name: Remove node modules to avoid linting errors | |
run: rm -rf src/node_modules | |
- name: Lint Generated HTML | |
uses: docker://github/super-linter:v3.13.1 | |
env: | |
DEFAULT_BRANCH: main | |
FILTER_REGEX_INCLUDE: src/static/html/.* | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VALIDATE_HTML: true | |
- name: Set the list of URLs for Lighthouse to check | |
env: | |
RUN_TYPE: ${{ github.event_name }} | |
COMMIT_SHA: ${{ github.sha }} | |
run: ./src/tools/scripts/set_lighthouse_urls.sh | |
- name: Audit URLs using Lighthouse | |
uses: treosh/lighthouse-ci-action@v3 | |
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' |