-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (58 loc) · 1.62 KB
/
tests.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
name: Tests
on:
push:
branches:
- main
pull_request:
defaults:
run:
shell: bash
jobs:
Test_Versions_on_Different_OS:
name: Test APICTL Versions on different OS versions
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-latest]
version: [4.1.0, 3.2.6, 3.1.5]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup APICTL
uses: ./
with:
version: ${{ matrix.version }}
- name: Validate apictl version - ${{ matrix['version'] }}
run: apictl version | grep ${{ matrix['version']}}
Test_with_Tarball_Location_on_Different_OS:
name: Test APICTL with tarball location
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-latest]
version: ['https://github.com/wso2/product-apim-tooling/releases/download/v4.1.0/apictl-4.1.0-linux-x64.tar.gz']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup APICTL
uses: ./
with:
tarball_location: ${{ matrix.version }}
- name: Validate apictl version - ${{ matrix['version'] }}
run: apictl version | grep 4.1.0
Test_variations_of_version:
name: Test APICTL different Version test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
version: [v4.1.0]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup APICTL
uses: ./
with:
version: ${{ matrix.version }}
- name: Validate apictl version - ${{ matrix['version'] }}
run: apictl version | grep 4.1.0