mirror of
https://github.com/Chewbaccalakis/rfid-database.git
synced 2026-09-09 16:01:56 -07:00
Add CI check that fails on merge conflict markers
This commit is contained in:
@@ -10,6 +10,17 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Reject merge conflict markers
|
||||||
|
run: |
|
||||||
|
if git grep -nE '^(<<<<<<<|>>>>>>>|=======)' -- . \
|
||||||
|
':(exclude)*.lock' \
|
||||||
|
':(exclude)package-lock.json'; then
|
||||||
|
echo "::error::Merge conflict markers found in tracked files"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo "No conflict markers found"
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "22"
|
node-version: "22"
|
||||||
|
|||||||
Reference in New Issue
Block a user