-
Notifications
You must be signed in to change notification settings - Fork 29
86 lines (78 loc) · 2.98 KB
/
testkit.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# This is a basic workflow to help you get started with Actions
name: TestKit
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ 5.0 ]
pull_request:
branches: [ 5.0 ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "testkit"
testkit:
# The type of runner that the job will run on
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.ruby[0] == 'ruby' }}
timeout-minutes: 60
strategy:
# max-parallel: 1
fail-fast: false
matrix:
ruby:
- [jruby, 9.4-jdk17]
- [ruby, latest]
tests:
- TESTKIT_TESTS
- STUB_TESTS
- TLS_TESTS
steps:
- uses: actions/checkout@v3
with:
path: driver
- name: Checkout TestKit (testing tool)
uses: actions/checkout@v3
with:
repository: neo4j-drivers/testkit
path: testkit
ref: '5.0'
- name: Install dependencies
run: |
sudo apt-get update
# install docker
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
# Python (needed for dummy driver and TestKit)
sudo apt-get install python3 python3-pip
# Runs a single command using the runners shell
- name: Run TestKit
env:
# to learn what these variables do, see https://github.com/neo4j-drivers/testkit
TESTKIT_DRIVER_BUILD_ARG_RUBY: ${{ join(matrix.ruby, ':') }}
TEST_DRIVER_NAME: ruby
TEST_DRIVER_REPO: ${{ github.workspace }}/driver
TEST_RUN_ALL_TESTS: "true"
# TEST_DEBUG_REQRES: "true"
run: |
cd testkit
# everything from --run-only-selected is to reduce the number of tests run in this
# demonstation setup. In a real setup, you most likely don't want this.
python3 main.py --tests ${{ matrix.tests }}
# --configs 4.3-enterprise --run-only-selected tests.neo4j.datatypes.TestDataTypes.test_should_echo_back
- name: Archive testkit artifacts
if: failure()
uses: actions/upload-artifact@v2
with:
name: artifacts ${{ matrix.ruby[0] }}
path: ${{ github.workspace }}/testkit/artifacts