
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Evergreen ILS". The branch, rel_3_15 has been updated via 084b01106edaf6dc8c789ace79bcfc8423a6a922 (commit) from c0c3d21b64d93f68ef4a56e05200d4c635587d5c (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 084b01106edaf6dc8c789ace79bcfc8423a6a922 Author: Jane Sandberg <sandbergja@gmail.com> Date: Wed Nov 20 11:47:41 2024 -0800 LP2089184: Run perl unit tests on Github Actions To test: 1. Go to https://github.com/evergreen-library-system/Evergreen 2. Press the fork button 3. In your fork's settings, go to Actions > General and confirm that Actions are on. 4. On the code tab of your fork, press the code button to get the git url of your fork 5. In your terminal: git remote add myfork [the url] 6. In your terminal: git fetch working && git checkout [this branch name] 7. In your terminal: git push myfork HEAD 8. Go to the github UI and watch the magic happen! Release-note: Run Perl Unit Tests automatically. Signed-off-by: Jane Sandberg <sandbergja@gmail.com> Signed-off-by: Stephanie Leary <stephanie.leary@equinoxoli.org> diff --git a/.github/workflows/perl-unit-tests.yml b/.github/workflows/perl-unit-tests.yml new file mode 100644 index 0000000000..3463a10709 --- /dev/null +++ b/.github/workflows/perl-unit-tests.yml @@ -0,0 +1,49 @@ +name: Run Perl and C Unit Tests +on: + push: + paths: + - '.github/workflows/**' + - 'Makefile.am' + - 'configure.ac' + - 'Open-ILS/src/extras/install' + - 'Open-ILS/src/Makefile.am' + - 'Open-ILS/src/perlmods' + pull_request: + paths: + - '.github/workflows/**' + - 'Makefile.am' + - 'configure.ac' + - 'Open-ILS/src/extras/install' + - 'Open-ILS/src/Makefile.am' + - 'Open-ILS/src/perlmods' + workflow_dispatch: + +jobs: + make-check: + name: Make Check + runs-on: ubuntu-24.04 + steps: + - name: Clone OpenSRF repository + run: git clone --branch main git://git.evergreen-ils.org/OpenSRF.git + - name: "OpenSRF: install dependencies" + run: sudo make -f src/extras/Makefile.install ubuntu-jammy + working-directory: ./OpenSRF + - name: "OpenSRF: configure and make" + run: autoreconf -i && ./configure --prefix=/openils --sysconfdir=/openils/conf && make + working-directory: ./OpenSRF + - name: "OpenSRF: make install" + run: sudo make install + working-directory: ./OpenSRF + + - uses: actions/checkout@v4 + with: + path: Evergreen + - name: "Evergreen: install dependencies" + run: sudo make -f Open-ILS/src/extras/Makefile.install ubuntu-jammy && sudo make -f Open-ILS/src/extras/Makefile.install ubuntu-jammy-developer + working-directory: ./Evergreen + - name: "Evergreen: configure" + run: autoreconf -i && PATH=/openils/bin:$PATH ./configure --prefix=/openils --sysconfdir=/openils/conf + working-directory: ./Evergreen + - name: "Evergreen: make check" + run: make --silent check + working-directory: ./Evergreen ----------------------------------------------------------------------- Summary of changes: .github/workflows/perl-unit-tests.yml | 49 +++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/perl-unit-tests.yml hooks/post-receive -- Evergreen ILS