-
Notifications
You must be signed in to change notification settings - Fork 0
91 lines (84 loc) · 2.52 KB
/
Copy pathexamples.yml
File metadata and controls
91 lines (84 loc) · 2.52 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
# Гоняет все шесть примеров против живого API на публичном демо-ключе.
#
# Смысл двойной:
# 1. Примеры в репозитории гарантированно рабочие — не «когда-то работали».
# 2. Ежеквартальный запуск ловит расхождение примеров с API, если контракт изменится.
name: Live API tests
on:
push:
branches: [main]
# Доки и сам workflow не меняют код примеров — дёргать по ним живой API незачем.
paths-ignore:
- '**.md'
- '.github/**'
- LICENSE
pull_request:
schedule:
# 1 января, апреля, июля и октября в 06:00 UTC — проверка, что примеры не разошлись с API.
- cron: '0 6 1 1,4,7,10 *'
workflow_dispatch:
jobs:
python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: pip install -r requirements.txt
working-directory: python
- run: python main.py
working-directory: python
node:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm install
working-directory: node
- run: npm run typecheck
working-directory: node
- run: npm start
working-directory: node
go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- run: go vet ./...
working-directory: go
- run: go run .
working-directory: go
java:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
- run: java Main.java
working-directory: java
csharp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0'
- run: dotnet run
working-directory: csharp
php:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
extensions: curl
- run: php main.php
working-directory: php