-
Notifications
You must be signed in to change notification settings - Fork 0
106 lines (100 loc) · 3.05 KB
/
Copy pathmatrix.yml
File metadata and controls
106 lines (100 loc) · 3.05 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
name: cross-sdk-compliance
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '0 3 * * *'
repository_dispatch:
types: [sdk-released]
workflow_dispatch:
jobs:
js:
name: JS · Node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [18, 20, 22]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: '${{ matrix.node }}', cache: 'npm', cache-dependency-path: runners/js/package-lock.json }
- run: npm ci
working-directory: runners/js
- name: run scenarios
working-directory: runners/js
env:
LIQAA_TEST_SK: ${{ secrets.LIQAA_TEST_SK }}
run: npm test -- --reporter=spec
php:
name: PHP · ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.2', '8.3', '8.4']
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with: { php-version: '${{ matrix.php }}', extensions: 'mbstring, openssl, json', coverage: none }
- run: composer install --no-interaction --prefer-dist
working-directory: runners/php
- name: run scenarios
working-directory: runners/php
env:
LIQAA_TEST_SK: ${{ secrets.LIQAA_TEST_SK }}
run: vendor/bin/phpunit --colors=always
python:
name: Python · ${{ matrix.python }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ['3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with: { python-version: '${{ matrix.python }}', cache: 'pip', cache-dependency-path: runners/python/requirements.txt }
- run: pip install -r requirements.txt
working-directory: runners/python
- name: run scenarios
working-directory: runners/python
env:
LIQAA_TEST_SK: ${{ secrets.LIQAA_TEST_SK }}
run: pytest -q
go:
name: Go · ${{ matrix.go }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go: ['1.21', '1.22', '1.23']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with: { go-version: '${{ matrix.go }}', cache-dependency-path: runners/go/go.sum }
- name: run scenarios
working-directory: runners/go
env:
LIQAA_TEST_SK: ${{ secrets.LIQAA_TEST_SK }}
run: go test -v ./...
summary:
name: 📊 Summary
runs-on: ubuntu-latest
needs: [js, php, python, go]
if: always()
steps:
- name: write summary
run: |
{
echo "# Cross-SDK Compliance Matrix"
echo ""
echo "| SDK | Result |"
echo "|-----|--------|"
echo "| JS | ${{ needs.js.result }} |"
echo "| PHP | ${{ needs.php.result }} |"
echo "| Python| ${{ needs.python.result }} |"
echo "| Go | ${{ needs.go.result }} |"
} >> $GITHUB_STEP_SUMMARY