dgate-cli bug fixes, add mapstructure for more granular control over … #18
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
name: DGate Build/Test/Bench | |
on: | |
push: | |
branches: [ "**" ] | |
jobs: | |
build_test: | |
runs-on: golang:1.22-alpine | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build & Install | |
run: | | |
go mod download | |
go build -v ./... | |
go install github.com/dgate-io/dgate/cmd/dgate-cli | |
go install github.com/dgate-io/dgate/cmd/dgate-server | |
- name: Test | |
run: | | |
go test -coverprofile=cov.out -v ./... | |
go tool cover -func=cov.out | |
- name: Upload coverage reports to Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug: dgate-io/dgate | |
- name: Benchmark | |
run: | | |
go test -bench=. -run=^# ./... | |
# needs jq, dgate-cli, and curl | |
- name: Functional Tests | |
run: | | |
apk update && apk add --no-cache curl jq | |
for i in functional-tests/admin_tests/*.sh; do bash -c $i; done | |