-
Notifications
You must be signed in to change notification settings - Fork 43
69 lines (51 loc) · 2.21 KB
/
build_and_test_no_docker.yaml
File metadata and controls
69 lines (51 loc) · 2.21 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
# NOTE:
# It is important that these actions are run for every PR, no matter what
# other actions are added. The ones here are testing the actual code pushed
# instead of a possibly outdated image. Additionally, we also run formatters
# and linters here.
# Do not modify this file unless you really need to. You very likely don't need to.
name: Build and Test (without Docker)
on: [push]
permissions:
contents: read
jobs:
runner-job:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Setup Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
- name: Setup Goimports
run: go install golang.org/x/tools/cmd/goimports@latest
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22
- name: Check Formatting (Go)
run: make format-check
- name: Build Binary
run: make build
- name: Run Biome Checks
run: cd pkg/web && npm run biome-check
- name: Start Server
# Use enable these features in our own deployment, so we might as well
# "enable" them during testing as well to simulate a more realistic setup.
env:
QUICKPIZZA_OTLP_ENDPOINT: "http://localhost"
QUICKPIZZA_TRUST_CLIENT_TRACEID: "1"
QUICKPIZZA_PYROSCOPE_ENDPOINT: "http://localhost"
run: ./bin/quickpizza &
- name: Setup k6
uses: grafana/setup-k6-action@ffe7d7290dfa715e48c2ccc924d068444c94bde2 # v1
- name: Install jq
uses: dcarbone/install-jq-action@e397bd87438d72198f81efd21f876461183d383a # v3.0.1
- name: Run k6 foundations tests
run: ./k6/run-tests.sh -t **/k6/foundations/*.js -u http://localhost:3333
- name: Run k6 foundations TS tests
run: ./k6/run-tests.sh -t **/k6/foundations/*.ts -u http://localhost:3333
- name: Run k6 internal tests
run: ./k6/run-tests.sh -t **/k6/internal/*.js -u http://localhost:3333
- name: Run k6 browser tests
run: ./k6/run-tests.sh -t **/k6/browser/*.js -u http://localhost:3333
- name: Stop Server
run: pkill -9 quickpizza