-
Notifications
You must be signed in to change notification settings - Fork 0
97 lines (96 loc) · 2.73 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
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
87
88
89
90
91
92
93
94
95
96
97
name: tests
on:
pull_request:
branches: [ master ]
push:
branches: [ master ]
jobs:
oapi-cli-tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: install dependancies
run: |
sudo apt-get update --fix-missing
sudo apt-get install -y -f -o Acquire::Retries=3 jq libjson-c-dev libcurl4-openssl-dev pkg-config cargo
- name: oapi-cli local tests
run: ./scripts/oapi-cli-tests.sh
osc-cli-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
- name: osc-cli local tests
run: ./scripts/osc-cli-tests.sh
osc-sdk-c-tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: install dependancies
run: |
sudo apt-get update --fix-missing
sudo apt-get install -y -f -o Acquire::Retries=3 jq libjson-c-dev libcurl4-openssl-dev pkg-config libjsoncpp-dev
- name: osc-sdk-c local tests
run: ./scripts/osc-sdk-c-tests.sh
osc-sdk-go-tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19
- name: osc-sdk-go local tests
run: ./scripts/osc-sdk-go-tests.sh
osc-sdk-python-tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
- name: osc-sdk-python local tests
run: ./scripts/osc-sdk-python-tests.sh
osc-sdk-rust-tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Stable Rust with rustfmt
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt
- name: osc-sdk-rust local tests
run: ./scripts/osc-sdk-rust-tests.sh
osc-sdk-js-tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.5.1
- name: make nvm available
run: |
sudo cp ~/.nvm/nvm.sh /usr/local/bin/nvm
sudo chmod +x /usr/local/bin/nvm
- name: osc-sdk-js local tests
run: ./scripts/osc-sdk-js-tests.sh
osc-sdk-java-tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
repository: outscale/osc-sdk-java
path: osc-sdk-java
- name: Copy xml Java setup
run: |
sudo cp osc-sdk-java/pom.xml .
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
- name: osc-sdk-java local tests
run: ./scripts/osc-sdk-java-tests.sh