]> wagnertech.de Git - mfinanz.git/blob - .github/workflows/main.yml
date error in mapping
[mfinanz.git] / .github / workflows / main.yml
1 on:
2   push:
3     branches:
4     - "**"
5   pull_request:
6     branches:
7     - master
8   workflow_dispatch:
9
10 jobs:
11   build:
12     name: kivi-tests
13     runs-on: ubuntu-22.04
14     steps:
15       - name: Check out repository code
16         uses: actions/checkout@v4
17       - name: Installiere Perl Module und Postgresql
18         run: |
19           sudo rm /etc/apt/sources.list.d/microsoft-prod.list
20           sudo add-apt-repository universe
21           sudo apt-get update
22           sudo apt-get install postgresql postgresql-contrib libtest-deep-perl libtest-exception-perl libtest-output-perl libwww-perl liburi-find-perl libsys-cpu-perl libthread-pool-simple-perl libdbi-perl liblist-moreutils-perl libyaml-perl libregexp-ipv6-perl libpbkdf2-tiny-perl librose-object-perl librose-db-perl librose-db-object-perl libdigest-perl-md5-perl liblist-utilsby-perl libalgorithm-checkdigits-perl libhtml-restrict-perl libfile-slurp-perl libsort-naturally-perl libmath-round-perl libtext-csv-xs-perl libtemplate-perl libcam-pdf-perl libxml-libxml-perl libxml-writer-perl libemail-address-perl libemail-mime-perl libarchive-zip-perl libimager-perl libimager-qrcode-perl libstring-shellquote-perl libgd-gd2-perl libimage-info-perl libconfig-std-perl libdbd-pg-perl libdatetime-event-cron-perl libfile-copy-recursive-perl librest-client-perl libipc-run-perl libfile-mimeinfo-perl libencode-imaputf7-perl libmail-imapclient-perl libhttp-dav-perl libpdf-api2-perl libppi-perl cpanminus libuuid-tiny-perl
23       - name: install cpan modules that don't have deb packages
24         run: |
25           cpanm -L ${{ runner.temp }}/cpan HTML::Query
26       - name: Configurieren
27         run: |
28           cp config/kivitendo.conf.default config/kivitendo.conf
29           sed -i '/db[ ]*=/ s/$/ testdb/; /host/ s/localhost/127\.0\.0\.1/' config/kivitendo.conf
30           sudo sed -i '/host[ ]*all[ ]*all[ ]*127/s/scram-sha-256/trust/' /etc/postgresql/14/main/pg_hba.conf
31       - name: Postgresql starten
32         run: sudo service postgresql start
33       - name: Starten der Tests...
34         run: t/test.pl
35         env:
36           PERL5LIB: ${{ runner.temp }}/cpan/lib/perl5