Skip to content

Commit 9409238

Browse files
authored
Update all-tests.yml
1 parent 1b351b1 commit 9409238

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/all-tests.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,24 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- name: Checkout repository
10+
- name: Checkout repository (full history)
1111
uses: actions/checkout@v2
1212
with:
13-
fetch-depth: 0
13+
fetch-depth: 0 # ← fetch all branches and commits
14+
15+
- name: Ensure master/main exist locally
16+
run: |
17+
# Try to fetch both master and main so that one of them is guaranteed to exist
18+
git fetch origin master:master || true
19+
git fetch origin main:main || true
1420
1521
- name: Setup Python
1622
uses: actions/setup-python@v2
1723
with:
1824
python-version: '3.x'
1925

2026
- name: Install CMake and Make
21-
run: sudo apt-get install -y cmake make
27+
run: sudo apt-get update && sudo apt-get install -y cmake make
2228

2329
- name: Run tests
2430
run: |

0 commit comments

Comments
 (0)