forked from kivitendo/kivitendo-erp
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (35 loc) · 1.08 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
on:
push:
branches:
- "**"
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
name: kivi-tests
runs-on: ubuntu-22.04
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Installiere Perl Module und Postgresql
run: |
cat /etc/apt/source.list
ls -lR /etc/
cat /etc/apt/apt-mirrors.txt
sudo add-apt-repository universe
- name: install cpan modules that don't have deb packages
run: |
cpanm -L ${{ runner.temp }}/cpan HTML::Query
- name: Configurieren
run: |
cp config/kivitendo.conf.default config/kivitendo.conf
sed -i '/db[ ]*=/ s/$/ testdb/; /host/ s/localhost/127\.0\.0\.1/' config/kivitendo.conf
sudo sed -i '/host[ ]*all[ ]*all[ ]*127/s/scram-sha-256/trust/' /etc/postgresql/14/main/pg_hba.conf
- name: Postgresql starten
run: sudo service postgresql start
- name: Starten der Tests...
run: t/test.pl
env:
PERL5LIB: ${{ runner.temp }}/cpan/lib/perl5