-
Notifications
You must be signed in to change notification settings - Fork 7
57 lines (53 loc) · 1.46 KB
/
test.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: test-rest-neo4p
on:
workflow_dispatch:
push:
branches:
# - master
pull_request:
branches:
# - master
jobs:
do:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
strategy:
matrix:
include:
- neo_ver: 3.5
agent_mod: "Mojo::UserAgent"
- neo_ver: 3.5
agent_mod: "Neo4j::Driver"
- neo_ver: 4.2
agent_mod: "Neo4j::Driver"
env:
NEO4J_VER: ${{ matrix.neo_ver }}
REST_NEO4P_AGENT_MODULE: ${{ matrix.agent_mod }}
steps:
- uses: actions/checkout@v2
- name: install perl things
run: |
sudo apt-get install -y cpanminus
cpanm --sudo Module::Build
- name: start_neo
env:
DOCKERH: ${{ secrets.DOCKERH }}
run: |
docker pull $DOCKERH/testneo/testneo:$NEO4J_VER
docker run -d -p 127.0.0.1:7474:7474 -p 127.0.0.1:7473:7473 -p 127.0.0.1:7687:7687 --env NEO4J_AUTH=none --name testneo $DOCKERH/testneo/testneo:$NEO4J_VER
sleep 10
- name: build
env:
REST_NEO4P_BUILD_NONINTERACTIVE: 1
REST_NEO4P_TEST_SERVER: http://localhost:7474
REST_NEO4P_TEST_USER: ''
REST_NEO4P_TEST_PASS: ''
run: |
perl ./Build.PL
echo y$'\n'y | ./Build installdeps --cpan_client 'cpanm --sudo -n'
./Build
- name: test
run: |
./Build test