ladybird/.github/workflows/lint-code.yml
dependabot[bot] 60ca15c0de CI: Bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-12 07:05:19 -04:00

34 lines
1.1 KiB
YAML

name: Lint Code
on: [ push, pull_request ]
jobs:
lint:
runs-on: macos-14
if: github.repository == 'LadybirdBrowser/ladybird'
steps:
- uses: actions/checkout@v5
- name: Set Up Environment
shell: bash
run: |
set -e
brew install curl llvm@20 ninja optipng ruff shellcheck swift-format unzip
# Note: gn isn't available in homebrew :(
# Corresponds to https://gn.googlesource.com/gn/+/225e90c5025bf74f41dbee60d9cde4512c846fe7
curl -L -o gn-mac-arm64.zip "https://chrome-infra-packages.appspot.com/dl/gn/gn/mac-arm64/+/786UV5-XW0Bz6QnRFxKtnzTSVq0ta5AU1KXRJs-ZNwcC"
unzip gn-mac-arm64.zip -d ${{ github.workspace }}/bin
chmod +x ${{ github.workspace }}/bin/gn
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
echo -n "gn version: "
${{ github.workspace}}/bin/gn --version
- name: Install JS Dependencies
shell: bash
run: npm install -g prettier@3.3.3
- name: Lint
run: ${{ github.workspace }}/Meta/lint-ci.sh