Skip to content

Commit 4f77922

Browse files
authored
Merge pull request #190 from poissoncorp/RDBC-736
RDBC-736 Run GH Actions on v6.0 & follow the script enhancements from nodejs client
2 parents 86f3374 + 8c9118f commit 4f77922

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

.github/workflows/RavenClient.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,17 @@ name: tests/python
22

33
on:
44
push:
5-
branches: [ v5.2 ]
5+
branches: [v5.2]
66
pull_request:
7-
branches: [ v5.2 ]
7+
branches: [v5.2]
88
schedule:
9-
- cron: '0 10 * * 6'
10-
9+
- cron: '0 10 * * *'
10+
workflow_dispatch:
11+
inputs:
12+
ravendb_version:
13+
description: 'RavenDB Version'
14+
required: true
15+
type: string
1116

1217
jobs:
1318
build:
@@ -25,13 +30,13 @@ jobs:
2530
strategy:
2631
matrix:
2732
python-version: [ '3.7', '3.8', '3.9' , '3.10']
28-
serverVersion: [ "5.2", "5.3", "5.4" ]
33+
serverVersion: [ "5.2", "5.4", "6.0" ]
2934
fail-fast: false
3035

3136
steps:
3237
- uses: actions/checkout@v2
3338

34-
- name: Use Python ${{ matrix.node-version }}
39+
- name: Use Python ${{ matrix.python-version }}
3540
uses: actions/setup-python@v2
3641
with:
3742
python-version : ${{ matrix.python-version }}
@@ -40,7 +45,12 @@ jobs:
4045
run: python -c "import sys; print(sys.version)"
4146

4247
- name: Download RavenDB Server
43-
run: wget -q -O RavenDB.tar.bz2 "https://hibernatingrhinos.com/downloads/RavenDB%20for%20Linux%20x64/latest?buildType=${{ env.RAVENDB_BUILD_TYPE }}&version=${{ matrix.serverVersion }}"
48+
run: |
49+
if [[ -n "${{ inputs.ravendb_version }}" ]]; then
50+
wget -O RavenDB.tar.bz2 "https://daily-builds.s3.amazonaws.com/RavenDB-${{ inputs.ravendb_version }}-linux-x64.tar.bz2"
51+
else
52+
wget -O RavenDB.tar.bz2 "https://hibernatingrhinos.com/downloads/RavenDB%20for%20Linux%20x64/latest?buildType=${{ env.RAVENDB_BUILD_TYPE }}&version=${{ matrix.serverVersion }}"
53+
fi
4454
4555
- run: mkdir certs
4656
- run: openssl genrsa -out certs/ca.key 2048

0 commit comments

Comments
 (0)