public release #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a golang project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
name: DGate Build/Test | |
on: | |
push: | |
branches: [ "**" ] | |
jobs: | |
k6_load_test: | |
name: k6 Load Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'go.mod' | |
- run: go mod download | |
- run: go run cmd/dgate-server/main.go & | |
- name: Wait for server to start | |
run: sleep 10 | |
- name: Run local k6 test | |
uses: grafana/k6-action@v0.3.1 | |
with: | |
filename: performance-tests/perf-test.js | |