Skip to content

Bump github/codeql-action from 3.25.10 to 3.25.11 #1228

Bump github/codeql-action from 3.25.10 to 3.25.11

Bump github/codeql-action from 3.25.10 to 3.25.11 #1228

Workflow file for this run

name: Lint Check
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
jobs:
clang-format-checking:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
egress-policy: audit
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: JCWasmx86/clang-format-github-action@5c264f5422767c0bca85813b2e7f2cf6c3c33606 # master
with:
sources: "src/**/*.hpp,src/**/*.cpp,test/**/*.cpp"
rome:
runs-on: ubuntu-22.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
egress-policy: audit
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Lint using rome
run: |
sudo apt install -y make
wget https://github.com/rome/tools/releases/download/cli%2Fv12.1.2/rome-linux-x64
chmod +x rome-linux-x64
./rome-linux-x64 check Benchmarks/script.js
sudo cp rome-linux-x64 /usr/bin/rome
cd Benchmarks
make format
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
git commit -a -m "Failed" || exit 0
git diff HEAD~1 | cat
exit 1
pylint:
runs-on: ubuntu-22.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
egress-policy: audit
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Lint using pylint
run: |
pip install pylint
pylint scripts/collect_perf_data.py
shellcheck:
runs-on: ubuntu-22.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
egress-policy: audit
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Lint using shellcheck
run: |
sudo apt install -y xz-utils tar
wget https://github.com/koalaman/shellcheck/releases/download/v0.9.0/shellcheck-v0.9.0.linux.x86_64.tar.xz
tar xvf shellcheck-v0.9.0.linux.x86_64.tar.xz
./shellcheck-v0.9.0/shellcheck -x scripts/*.sh Benchmarks/*.sh
shfmt:
runs-on: ubuntu-22.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
egress-policy: audit
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Lint using shfmt
run: |
wget https://github.com/mvdan/sh/releases/download/v3.7.0/shfmt_v3.7.0_linux_amd64
chmod +x ./shfmt_v3.7.0_linux_amd64
./shfmt_v3.7.0_linux_amd64 -w -i 0 scripts/*.sh Benchmarks/*.sh
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
git commit -a -m "Failed" || exit 0
git diff HEAD~1 | cat
exit 1