Skip to content

Commit 084b011

Browse files
committed
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 <[email protected]> Signed-off-by: Stephanie Leary <[email protected]>
1 parent c0c3d21 commit 084b011

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Run Perl and C Unit Tests
2+
on:
3+
push:
4+
paths:
5+
- '.github/workflows/**'
6+
- 'Makefile.am'
7+
- 'configure.ac'
8+
- 'Open-ILS/src/extras/install'
9+
- 'Open-ILS/src/Makefile.am'
10+
- 'Open-ILS/src/perlmods'
11+
pull_request:
12+
paths:
13+
- '.github/workflows/**'
14+
- 'Makefile.am'
15+
- 'configure.ac'
16+
- 'Open-ILS/src/extras/install'
17+
- 'Open-ILS/src/Makefile.am'
18+
- 'Open-ILS/src/perlmods'
19+
workflow_dispatch:
20+
21+
jobs:
22+
make-check:
23+
name: Make Check
24+
runs-on: ubuntu-24.04
25+
steps:
26+
- name: Clone OpenSRF repository
27+
run: git clone --branch main git://git.evergreen-ils.org/OpenSRF.git
28+
- name: "OpenSRF: install dependencies"
29+
run: sudo make -f src/extras/Makefile.install ubuntu-jammy
30+
working-directory: ./OpenSRF
31+
- name: "OpenSRF: configure and make"
32+
run: autoreconf -i && ./configure --prefix=/openils --sysconfdir=/openils/conf && make
33+
working-directory: ./OpenSRF
34+
- name: "OpenSRF: make install"
35+
run: sudo make install
36+
working-directory: ./OpenSRF
37+
38+
- uses: actions/checkout@v4
39+
with:
40+
path: Evergreen
41+
- name: "Evergreen: install dependencies"
42+
run: sudo make -f Open-ILS/src/extras/Makefile.install ubuntu-jammy && sudo make -f Open-ILS/src/extras/Makefile.install ubuntu-jammy-developer
43+
working-directory: ./Evergreen
44+
- name: "Evergreen: configure"
45+
run: autoreconf -i && PATH=/openils/bin:$PATH ./configure --prefix=/openils --sysconfdir=/openils/conf
46+
working-directory: ./Evergreen
47+
- name: "Evergreen: make check"
48+
run: make --silent check
49+
working-directory: ./Evergreen

0 commit comments

Comments
 (0)