-
Notifications
You must be signed in to change notification settings - Fork 72
222 lines (222 loc) · 5.56 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
name: Test SDKs
on:
workflow_dispatch:
pull_request:
push:
branches: [master]
jobs:
_regenerate_:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Regenerate SDKs
run: pwsh build.ps1
- run: git diff
- name: Fail if there are differences
run: git diff | diff - /dev/null &> /dev/null
angular:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Check angular
working-directory: ./angular
run: |
npm i
npm run build
javascript:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Check javascript
working-directory: ./javascript
run: |
npm i
npm run build
npm run test
typescript:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Check typescript
working-directory: ./typescript
run: |
npm i
npm run build
java:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Check java
working-directory: ./java
run: sh ./gradlew --no-daemon check
android:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- uses: android-actions/setup-android@v3
with:
log-accepted-android-sdk-licenses: false
- name: Check android
working-directory: ./android
run: sh ./gradlew --no-daemon check
kotlin:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Check kotlin
working-directory: ./kotlin
run: sh ./gradlew --no-daemon check
clojure:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Check clojure
working-directory: ./clojure
run: |
curl -LO https://raw.githubusercontent.com/technomancy/leiningen/2.11.2/bin/lein > ~/lein
sh ~/lein test
sh ~/lein uberjar
csharp:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Check csharp
working-directory: ./csharp
run: dotnet test
go:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '>=1.20.0'
- name: Check go
working-directory: ./go
run: go test
rust:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Check rust
working-directory: ./rust
run: cargo test
elixir:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: '25'
elixir-version: '1.17.0'
- name: Check elixir
working-directory: ./elixir
run: |
mix deps.get
mix test
erlang:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: '25'
rebar3-version: '3.16.1'
- name: Check erlang
working-directory: ./erlang
run: |
rebar3 deps
rebar3 compile
ruby:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
- name: Check ruby
working-directory: ./ruby
run: |
bundle install
bundle exec rake spec
python:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Check python
working-directory: ./python
run: |
pip install . pytest
pytest
perl:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: shogo82148/actions-setup-perl@v1
with:
perl-version: "5.38"
- name: Check perl
working-directory: ./perl
run: |
cpanm --local-lib=/tmp/perl5 local::lib
eval $(perl -I /tmp/perl5/lib/perl5/ -Mlocal::lib) && \
cpanm --no-interactive --installdeps --force . && \
prove -j4 -lv t
php:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
tools: composer:v2
- name: Check php
working-directory: ./php
run: |
composer install
./vendor/bin/phpunit test
lua:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: jkl1337/gh-actions-lua@v11
- uses: jkl1337/gh-actions-luarocks@v5
- name: Check lua
working-directory: ./lua
run: |
luarocks install ./*.rockspec --check-lua-versions
luarocks test