This repository was archived by the owner on Aug 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 471
119 lines (105 loc) · 2.8 KB
/
build_test.yml
File metadata and controls
119 lines (105 loc) · 2.8 KB
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
name: Build and test snippets
on:
push:
branches:
- master
pull_request:
branches:
- '*'
env:
FAKE_CERT_PATH: ~/build/TwilioDevEd/api-snippets/twilio-api-faker/keystore/twilio_fake.pem
GRADLE_OPTS: "-Dorg.gradle.daemon=true"
BASH: /bin/bash
BASH_SOURCE: /usr/local/bin/virtualenvwrapper.sh
jobs:
python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./.github/setup
- name: Set up Python 3.6
uses: actions/setup-python@v2
with:
python-version: 3.6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel virtualenv virtualenvwrapper
pip install -r requirements.txt
- name: Run Tests
run: |
echo "Run api faker"
./run_twilio_api_faker.sh
echo "Running tests"
ruby tools/snippet-testing/snippet_tester.rb -i
env:
SNIPPET_LANGUAGE: python
curl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./.github/setup
- name: Run Tests
run: |
./run_twilio_api_faker.sh
ruby tools/snippet-testing/snippet_tester.rb -i
env:
SNIPPET_LANGUAGE: curl
node:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./.github/setup
- uses: actions/setup-node@v2
with:
node-version: '14'
- run: npm install
- name: Run Tests
run: |
./run_twilio_api_faker.sh
ruby tools/snippet-testing/snippet_tester.rb -i
env:
SNIPPET_LANGUAGE: node
ruby:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./.github/setup
- name: Install rvm
run: |
sudo apt-add-repository -y ppa:rael-gc/rvm
sudo apt-get update
sudo apt-get install rvm
sudo usermod -a -G rvm $USER
- name: Run Tests
run: |
./run_twilio_api_faker.sh
ruby tools/snippet-testing/snippet_tester.rb -i
env:
SNIPPET_LANGUAGE: ruby
csharp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./.github/setup
- name: Run Tests
run: |
./run_twilio_api_faker.sh
ruby tools/snippet-testing/snippet_tester.rb -i
env:
SNIPPET_LANGUAGE: csharp
php:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./.github/setup
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '5.6'
- name: Run Tests
run: |
./run_twilio_api_faker.sh
ruby tools/snippet-testing/snippet_tester.rb -i
env:
SNIPPET_LANGUAGE: php