Skip to content

Commit

Permalink
ci: test with 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DifferentialOrange committed Dec 29, 2023
1 parent 65ca01c commit d874a7d
Showing 1 changed file with 54 additions and 14 deletions.
68 changes: 54 additions & 14 deletions .github/workflows/test_on_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ jobs:
- tarantool-version: "2.11"
external-merger-version: "0.0.5"
external-keydef-version: "0.0.4"
- tarantool-version: "master"
metrics-version: "1.0.0"
- tarantool-version: "3.0.0"
vshard-version: "0.1.25"
fail-fast: false
# Can't install older versions on 22.04,
Expand All @@ -51,8 +50,8 @@ jobs:
steps:
- uses: actions/checkout@master

- name: Setup Tarantool CE
if: matrix.tarantool-version != 'master'
- name: Setup Tarantool CE (1.x, 2.x)
if: ${{ startsWith( matrix.tarantool-version, '1.' ) || startsWith( matrix.tarantool-version, '2.' ) }}
uses: tarantool/setup-tarantool@v2
with:
tarantool-version: ${{ matrix.tarantool-version }}
Expand All @@ -63,6 +62,24 @@ jobs:
sudo apt install -y tt
tt version
- name: Cache Tarantool 3.x
if: ${{ startsWith( matrix.tarantool-version, '3.' ) }}
id: cache-v3
uses: actions/cache@v3
with:
path: "${GITHUB_WORKSPACE}/bin"
key: cache-${{ matrix.tarantool-version }}

- name: Setup Tarantool CE (3.x)
if: ${{ startsWith( matrix.tarantool-version, '3.' ) && steps.cache-latest.outputs.cache-hit != 'true' }}
run: |
tt init
tt install tarantool ${{ matrix.tarantool-version }}
- name: Add Tarantool 3.x to PATH
if: matrix.tarantool-version == 'master'
run: echo "${GITHUB_WORKSPACE}/bin" >> $GITHUB_PATH

- name: Get Tarantool master latest commit
if: matrix.tarantool-version == 'master'
run: |
Expand All @@ -78,14 +95,14 @@ jobs:
path: "${GITHUB_WORKSPACE}/bin"
key: cache-latest-${{ env.LATEST_COMMIT }}

- name: Setup Tarantool master
- name: Setup Tarantool CE (master)
if: matrix.tarantool-version == 'master' && steps.cache-latest.outputs.cache-hit != 'true'
run: |
tt init
tt install tarantool master
- name: Add Tarantool master to PATH
if: matrix.tarantool-version == 'master'
- name: Add tt Tarantool to PATH
if: ${{ startsWith( matrix.tarantool-version, '3.' ) || matrix.tarantool-version == 'master' }}
run: echo "${GITHUB_WORKSPACE}/bin" >> $GITHUB_PATH

- name: Fix luarocks in Tarantool CE 1.10.6
Expand Down Expand Up @@ -139,16 +156,15 @@ jobs:
metrics-version: ["1.0.0"]
cartridge-version: ["2.8.0"]
include:
- tarantool-version: "master"
metrics-version: "1.0.0"
- tarantool-version: "3.0.0"
vshard-version: "0.1.25"
fail-fast: false
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master

- name: Setup Tarantool CE
if: matrix.tarantool-version != 'master'
- name: Setup Tarantool CE (1.x, 2.x)
if: ${{ startsWith( matrix.tarantool-version, '1.' ) || startsWith( matrix.tarantool-version, '2.' ) }}
uses: tarantool/setup-tarantool@v2
with:
tarantool-version: ${{ matrix.tarantool-version }}
Expand All @@ -159,6 +175,24 @@ jobs:
sudo apt install -y tt
tt version
- name: Cache Tarantool 3.x
if: ${{ startsWith( matrix.tarantool-version, '3.' ) }}
id: cache-v3
uses: actions/cache@v3
with:
path: "${GITHUB_WORKSPACE}/bin"
key: cache-${{ matrix.tarantool-version }}

- name: Setup Tarantool CE (3.x)
if: ${{ startsWith( matrix.tarantool-version, '3.' ) && steps.cache-latest.outputs.cache-hit != 'true' }}
run: |
tt init
tt install tarantool ${{ matrix.tarantool-version }}
- name: Add Tarantool 3.x to PATH
if: matrix.tarantool-version == 'master'
run: echo "${GITHUB_WORKSPACE}/bin" >> $GITHUB_PATH

- name: Get Tarantool master latest commit
if: matrix.tarantool-version == 'master'
run: |
Expand All @@ -174,14 +208,14 @@ jobs:
path: "${GITHUB_WORKSPACE}/bin"
key: cache-latest-${{ env.LATEST_COMMIT }}

- name: Setup Tarantool master
- name: Setup Tarantool CE (master)
if: matrix.tarantool-version == 'master' && steps.cache-latest.outputs.cache-hit != 'true'
run: |
tt init
tt install tarantool master
- name: Add Tarantool master to PATH
if: matrix.tarantool-version == 'master'
- name: Add tt Tarantool to PATH
if: ${{ startsWith( matrix.tarantool-version, '3.' ) || matrix.tarantool-version == 'master' }}
run: echo "${GITHUB_WORKSPACE}/bin" >> $GITHUB_PATH

- name: Install requirements for community
Expand Down Expand Up @@ -216,6 +250,12 @@ jobs:
bundle: "tarantool-enterprise-sdk-nogc64-2.11.0-0-r563.linux.x86_64"
metrics-version: ["", "1.0.0"]
cartridge-version: ["2.8.0"]
include:
- tarantool-version:
folder: "3.0"
bundle: "tarantool-enterprise-sdk-gc64-3.0.0-0-gf58f7d82a-r23.linux.x86_64"
vshard-version: "0.1.25"

fail-fast: false
runs-on: ubuntu-20.04
steps:
Expand Down

0 comments on commit d874a7d

Please sign in to comment.