Skip to content

build(deps): bump uuid from 1.19.0 to 1.20.0 #116

build(deps): bump uuid from 1.19.0 to 1.20.0

build(deps): bump uuid from 1.19.0 to 1.20.0 #116

Workflow file for this run

on:
pull_request:
paths:
- '.github/workflows/**'
- 'src/**'
- 'tests/**'
- 'third-party/**'
- 'Cargo.toml'
- 'BUCK'
- '.buckconfig'
name: Check, Build and Test
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
format:
name: Rustfmt Check
runs-on: [ self-hosted ]
env:
CARGO_TERM_COLOR: always
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install nightly toolchain
run: |
rustup toolchain install nightly --profile minimal
rustup component add rustfmt --toolchain nightly
- name: Run rustfmt
run: cargo +nightly fmt --all --check
clippy:
name: Clippy Check
runs-on: [ self-hosted ]
permissions:
contents: read
pull-requests: write
env:
CARGO_TERM_COLOR: always
RUSTUP_TOOLCHAIN: stable
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Run cargo clippy
run: cargo clippy --all-targets --all-features -- -D warnings
redundancy:
name: Redundancy Check
runs-on: [ self-hosted ]
env:
CARGO_TERM_COLOR: always
RUSTUP_TOOLCHAIN: stable
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Run redundancy check
run: |
x=$(find third-party/rust/crates -mindepth 2 -maxdepth 2 -type d -exec bash -c '
n=$(find "$1" -maxdepth 1 -type f | wc -l)
[ $n -gt 1 ]
' _ {} \; -print -quit | wc -l)
if [ $x -gt 0 ]; then
echo "❌ Redundant directories found"
exit 1
else
echo "✅ All good"
exit 0
fi
build:
name: Buck2 Build
runs-on: [ self-hosted ]
env:
CARGO_TERM_COLOR: always
RUSTUP_TOOLCHAIN: stable
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build with Buck2
run: buck2 build //:git_internal
test:
name: Run Tests
runs-on: [ self-hosted ]
env:
CARGO_TERM_COLOR: always
RUSTUP_TOOLCHAIN: stable
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
lfs: true
- name: Run cargo test
run: git lfs pull && cargo test --all