-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (43 loc) · 1.01 KB
/
go.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
name: E2E
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
schedule:
- cron: '47 10 * * *'
defaults:
run:
shell: bash
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: true
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23'
- name: Go vet
run: go vet ./...
- name: Test
run: go test -v ./...
- name: Install k6
run: go install go.k6.io/k6@latest
- name: Install xk6
run: go install go.k6.io/xk6/cmd/xk6@latest
- name: Build extension
run: |
which go
go version
GOPRIVATE="go.k6.io/k6" xk6 build latest \
--output ./k6ext \
--with github.com/domsolutions/xk6-fasthttp=.
./k6ext version
- name: Run E2E test
run: ./k6ext run -u 1 -i 1 examples/json.js