-
-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (33 loc) · 1.18 KB
/
pr_pre-commit.yaml
File metadata and controls
36 lines (33 loc) · 1.18 KB
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
---
name: pre-commit
on:
pull_request:
merge_group:
env:
CARGO_TERM_COLOR: always
NIX_PKG_MANAGER_VERSION: "2.28.3"
RUST_TOOLCHAIN_VERSION: "nightly-2025-01-15"
HADOLINT_VERSION: "v2.12.0"
PYTHON_VERSION: "3.12"
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Install host dependencies
uses: awalsh128/cache-apt-pkgs-action@5902b33ae29014e6ca012c5d8025d4346556bd40 # v1.4.3
with:
packages: protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config apt-transport-https
version: ubuntu-latest
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
submodules: recursive
fetch-depth: 0
- uses: stackabletech/actions/run-pre-commit@feat/run-pre-commit-pin-rustup-version # TODO: Use released version
with:
python-version: ${{ env.PYTHON_VERSION }}
rust: ${{ env.RUST_TOOLCHAIN_VERSION }}
rustup-version: "1.28.1"
hadolint: ${{ env.HADOLINT_VERSION }}
nix: ${{ env.NIX_PKG_MANAGER_VERSION }}
nix-github-token: ${{ secrets.GITHUB_TOKEN }}