From 52ed072e1351655f6d0c6bad48880819ef4159d1 Mon Sep 17 00:00:00 2001 From: "Claus Schneider(Eficode)" Date: Thu, 23 Nov 2023 17:08:42 +0100 Subject: [PATCH] Add pipeline to test against git latest, 2.34.1, 2.25.1 --- .github/workflows/pr.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/pr.yml diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..f8bfcdd --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,35 @@ +name: CI + +on: + # Triggers the workflow on push or pull request events but only for the "main" branch + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + build-and-test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Run tests git-latest + run: | + alias git="docker run -ti --rm -v $(pwd):/git -v $HOME/.ssh:/root/.ssh alpine/git:latest" + git --version + verbose=true debug=true bash _tests.sh + - name: Run tests git-2.34.1 + run: | + alias git="docker run -ti --rm -v $(pwd):/git -v $HOME/.ssh:/root/.ssh alpine/git:2.34.1" + git --version + verbose=true debug=true bash _tests.sh + - name: Run tests git-2.25.1 + run: | + alias git="docker run -ti --rm -v $(pwd):/git -v $HOME/.ssh:/root/.ssh alpine/git:2.25.1" + git --version + verbose=true debug=true bash _tests.sh \ No newline at end of file