From bd4a0b5ca5e126f0452d36d037e93834ff0041ba Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Wed, 19 Feb 2025 13:45:43 +0100 Subject: [PATCH] Essais d'une google action pour lancer les tests des obitools --- .github/workflows/obitest.yml | 19 +++++++++++++++++++ Makefile | 2 +- pkg/obioptions/version.go | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/obitest.yml diff --git a/.github/workflows/obitest.yml b/.github/workflows/obitest.yml new file mode 100644 index 0000000..ad358bf --- /dev/null +++ b/.github/workflows/obitest.yml @@ -0,0 +1,19 @@ +name: "Run the obitools command test suite" + +on: + push: + branches: + - master + - V* +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Setup Go + uses: actions/setup-go@v2 + with: + go-version: '1.23' + - name: Checkout obitools4 project + uses: actions/checkout@v4 + - name: Run tests + run: make obitests diff --git a/Makefile b/Makefile index 3ca7958..28fcf74 100644 --- a/Makefile +++ b/Makefile @@ -64,7 +64,7 @@ update-deps: test: $(GOTEST) ./... -obitests: +obitests: obitools for t in $$(find obitests -name test.sh -print) ; do \ $(SHELL) $${t} ; \ done diff --git a/pkg/obioptions/version.go b/pkg/obioptions/version.go index ff1e79c..f2425b6 100644 --- a/pkg/obioptions/version.go +++ b/pkg/obioptions/version.go @@ -8,7 +8,7 @@ import ( // corresponds to the last commit, and not the one when the file will be // commited -var _Commit = "4774438" +var _Commit = "952f85f" var _Version = "Release 4.2.0" // Version returns the version of the obitools package.