Skip to content

Commit 2f07263

Browse files
committed
drop Git 2.15 test, that version is 10 years old
1 parent 672b540 commit 2f07263

File tree

1 file changed

+0
-72
lines changed

1 file changed

+0
-72
lines changed

.github/workflows/self-test.yml

Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -130,75 +130,3 @@ jobs:
130130
run: |
131131
set -euo pipefail
132132
test "${{ steps.detached_tag.outcome }}" = "failure"
133-
134-
git-2-15-compat:
135-
runs-on: ubuntu-latest
136-
steps:
137-
- name: Check out action source
138-
uses: actions/checkout@v4
139-
with:
140-
path: action-src
141-
142-
- name: Install Git 2.15.0
143-
shell: bash
144-
run: |
145-
set -euo pipefail
146-
147-
sudo apt-get update
148-
sudo apt-get install -y \
149-
build-essential \
150-
gettext \
151-
libcurl4-openssl-dev \
152-
libexpat1-dev \
153-
libssl-dev \
154-
zlib1g-dev
155-
156-
curl -fsSL https://www.kernel.org/pub/software/scm/git/git-2.15.0.tar.xz -o git-2.15.0.tar.xz
157-
tar -xf git-2.15.0.tar.xz
158-
159-
pushd git-2.15.0 >/dev/null
160-
make prefix="${RUNNER_TEMP}/git-2.15.0" -j"$(nproc)" all
161-
make prefix="${RUNNER_TEMP}/git-2.15.0" install
162-
popd >/dev/null
163-
164-
echo "${RUNNER_TEMP}/git-2.15.0/bin" >> "$GITHUB_PATH"
165-
166-
- name: Verify Git version
167-
shell: bash
168-
run: |
169-
set -euo pipefail
170-
test "$(git --version | awk '{print $3}')" = "2.15.0"
171-
172-
- name: Prepare local fixture repository
173-
shell: bash
174-
run: |
175-
set -euo pipefail
176-
177-
git init --bare remote.git
178-
git init .
179-
git config user.email "ci@example.com"
180-
git config user.name "CI"
181-
git checkout -b main
182-
183-
echo "fixture report" > report.html
184-
git add report.html
185-
git commit -m "init fixture"
186-
187-
git remote add origin "remote.git"
188-
git push -u origin main
189-
190-
- name: Run action with explicit branch
191-
uses: ./action-src
192-
with:
193-
coverage: "75%"
194-
branch: main
195-
report: report.html
196-
197-
- name: Verify Git 2.15.0 run
198-
shell: bash
199-
run: |
200-
set -euo pipefail
201-
202-
files="$(git --git-dir=remote.git ls-tree --name-only -r coverage)"
203-
echo "$files" | grep -Fx "main/badge.svg"
204-
echo "$files" | grep -Fx "main/report.html"

0 commit comments

Comments
 (0)