Skip to content

Commit f1cf158

Browse files
authored
Added test
1 parent 49e154e commit f1cf158

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Check One File Commit
2+
3+
on: [push]
4+
5+
jobs:
6+
verify-files:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v4
11+
12+
- name: Check that b.txt exists
13+
run: |
14+
if [ ! -f "b.txt" ]; then
15+
echo "❌ b.txt is missing."
16+
exit 1
17+
else
18+
echo "✅ b.txt is present."
19+
fi
20+
21+
- name: Check that a.txt does NOT exist
22+
run: |
23+
if [ -f "a.txt" ]; then
24+
echo "❌ a.txt should not be present."
25+
exit 1
26+
else
27+
echo "✅ a.txt is not present."
28+
fi

0 commit comments

Comments
 (0)