Skip to content

Merge pull request #22 from ssotka/ssotka-patch-1 #75

Merge pull request #22 from ssotka/ssotka-patch-1

Merge pull request #22 from ssotka/ssotka-patch-1 #75

Workflow file for this run

name: test
on:
push:
branches:
- 'master'
tags-ignore:
- '*'
pull_request:
jobs:
raku:
strategy:
matrix:
os:
- ubuntu-latest
- macOS-latest
#- windows-latest
raku-version:
- 'latest'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: Raku/setup-raku@v1
with:
raku-version: ${{ matrix.raku-version }}
- name: Install Dependencies libpq-dev (Ubuntu only)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install libpq-dev
sudo apt-get install libossp-uuid-dev
- name: Install Dependencies libpq-dev (macOS only)
if: matrix.os == 'macOS-latest'
run: |
brew install libpq;
brew install ossp-uuid;
export DYLD_LIBRARY_PATH=/opt/homebrew/lib:$DYLD_LIBRARY_PATH
- name: Install Dependencies (windows only)
if: matrix.os == 'windows-latest'
run: |
choco install postgresql
choco install ossp-uuid
choco install sed
- name: Install Dependencies (Download DB::Pg)
# Download DB::Pg, unpack it, edit META6.json to remove 'ver<5>' from
# the 'depends' section, and call zef to install it. fixed sed.
if: matrix.os == 'macOS-latest'
run: |
export DYLD_LIBRARY_PATH=/opt/homebrew/lib:$DYLD_LIBRARY_PATH
git clone https://github.com/CurtTilmes/raku-dbpg.git
cd raku-dbpg;
sed -i '.bk' -e 's/\:ver\<5\>//g' META6.json;
zef install --exclude="pq" .
- name: Install Dependencies
run: zef install --/test --test-depends --deps-only .
- name: Install App::Prove6
run: zef install --/test App::Prove6
- name: Run Tests
run: prove6 -l t