mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-21 01:06:58 +00:00
- actions/checkout v4 -> v7 - actions/stale v5 -> v10 - actions/cache v4 -> v6 - codecov/codecov-action v5 -> v7 - mondeja/remove-labels-gh-action v1 -> v2 Assisted-by: claude-code:claude-opus-4-6 Signed-off-by: Adrian Reber <areber@redhat.com>
30 lines
1.2 KiB
YAML
30 lines
1.2 KiB
YAML
name: Verify self-contained commits
|
|
|
|
on: pull_request
|
|
|
|
# Cancel any preceding run on the pull request
|
|
concurrency:
|
|
group: commit-test-${{ github.event.pull_request.number }}
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
# Check if pull request does not have label "not-selfcontained-ok"
|
|
if: "!contains(github.event.pull_request.labels.*.name, 'not-selfcontained-ok')"
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
with:
|
|
# Needed to rebase against the base branch
|
|
fetch-depth: 0
|
|
# Checkout pull request HEAD commit instead of merge commit
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
- name: Install dependencies
|
|
run: sudo contrib/apt-install libprotobuf-dev libprotobuf-c-dev protobuf-c-compiler protobuf-compiler python3-protobuf libnl-3-dev libnet-dev libcap-dev uuid-dev
|
|
- name: Configure git user details
|
|
run: |
|
|
git config --global user.email "checkpoint-restore@users.noreply.github.com"
|
|
git config --global user.name "checkpoint-restore"
|
|
- name: Configure base branch without switching current branch
|
|
run: git fetch origin ${{ github.base_ref }}:${{ github.base_ref }}
|
|
- name: Build each commit
|
|
run: git rebase ${{ github.base_ref }} -x "make -C scripts/ci check-commit"
|