Skip to content

Commit

Permalink
github-action - add atomic-commits check on pull_request
Browse files Browse the repository at this point in the history
  • Loading branch information
SiskaPavel committed Oct 3, 2024
1 parent bd6899f commit 46c108e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/atomic-commits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: check-atomic-commits

on: pull_request

jobs:
atomic-commits:
runs-on: ubuntu-latest
container: oraclelinux:9
steps:
- name: Install git
run: dnf install -y git
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
uses: ./.github/actions/install-dependencies
- name: Mark github workspace as safe
run: git config --system --add safe.directory $PWD
- name: List commits and run make for each
run: |
git rev-list --reverse ${{ github.event.pull_request.base.sha }}..HEAD | while read commit; do
git checkout $commit
make
done

0 comments on commit 46c108e

Please sign in to comment.