-
-
Notifications
You must be signed in to change notification settings - Fork 969
37 lines (27 loc) · 957 Bytes
/
lint-code.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Lint Code
on: [ push, pull_request ]
jobs:
lint:
runs-on: ubuntu-22.04
if: always() && github.repository == 'LadybirdBrowser/ladybird'
steps:
- uses: actions/checkout@v4
- name: Set Up Environment
shell: bash
run: |
set -e
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main'
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install clang-format-18 generate-ninja
- name: Install JS Dependencies
shell: bash
run: sudo npm install -g [email protected]
- name: Install Python Dependencies
shell: bash
run: |
python3 -m pip install --upgrade pip
pip3 install flake8
- name: Lint
run: ${{ github.workspace }}/Meta/lint-ci.sh