Repository navigation
78 lines (61 loc) · 2.13 KB
/
Copy pathtest.yml
File metadata and controls
78 lines (61 loc) · 2.13 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
name: test
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: "22.14.0"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.14.6"
cache: pip
cache-dependency-path: |
examples/python-fastapi-demo/requirements.txt
examples/python-fastapi-demo/requirements-test.txt
examples/python-django-demo/requirements.txt
- name: Run dashboard JavaScript unit tests
run: node --test internal/dashboard/static/dashboard.test.js
- name: Set up Node for Express demo
uses: actions/setup-node@v4
with:
node-version: "24.21.0"
cache: npm
cache-dependency-path: examples/node-express-demo/package-lock.json
- name: Install Express demo dependencies
working-directory: examples/node-express-demo
run: npm ci
- name: Run Express integration tests
working-directory: examples/node-express-demo
run: npm test
- name: Install Python demo test dependencies
run: python -m pip install -r examples/python-fastapi-demo/requirements-test.txt -r examples/python-django-demo/requirements.txt
- name: Run FastAPI integration tests
run: python -m unittest examples/python-fastapi-demo/test_statlite_metrics.py
- name: Run Django integration tests
working-directory: examples/python-django-demo
run: python -m unittest test_statlite_metrics.py
- name: Run Go tests
run: go test ./...
- name: Run storage poll limit integration test
run: go test -tags=integration ./test/integration/storage
- name: Run Go static analysis
run: go vet ./...
- name: Check Go formatting
run: test -z "$(gofmt -l .)"