mirror of
https://github.com/Anarios/return-youtube-dislike.git
synced 2026-10-27 23:31:06 +01:00
5d01972c3c
Refresh workflow CA trust and add an opt-in filtered Node launcher. Preserve inherited TLS settings in website commands and set the native language for Linux locale tests. Validated with hosted lint, 2351 Jest tests, 112 extension browser tests, 151 userscript browser tests, generated-artifact checks, and successful browser artifact builds.
58 lines
1.4 KiB
YAML
58 lines
1.4 KiB
YAML
# This workflow lints the code in /Website, if any was committed
|
|
|
|
name: Website Lint
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- Website/**
|
|
- .github/workflows/weblint.yml
|
|
- .nvmrc
|
|
- scripts/check-locales*
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- Website/**
|
|
- .github/workflows/weblint.yml
|
|
- .nvmrc
|
|
- scripts/check-locales*
|
|
|
|
jobs:
|
|
weblint:
|
|
runs-on: ubuntu-24.04
|
|
env:
|
|
NODE_OPTIONS: --use-openssl-ca
|
|
SSL_CERT_FILE: /etc/ssl/certs/ca-certificates.crt
|
|
SSL_CERT_DIR: /etc/ssl/certs
|
|
|
|
steps:
|
|
- name: Update trusted certificate authorities
|
|
run: |
|
|
sudo apt-get update -o APT::Update::Error-Mode=any
|
|
sudo apt-get install --yes --no-install-recommends --only-upgrade ca-certificates
|
|
dpkg --compare-versions "$(dpkg-query -W -f='${Version}' ca-certificates)" ge 20260816ubuntu0.24.04.1
|
|
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: .nvmrc
|
|
cache: npm
|
|
cache-dependency-path: Website/package-lock.json
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
working-directory: Website
|
|
|
|
- name: Run lint
|
|
run: npm run lint
|
|
working-directory: Website
|
|
|
|
- name: Check website locales
|
|
run: node scripts/check-locales.js --website
|