Skip to content

dgate-cli bug fixes, add mapstructure for more granular control over … #18

dgate-cli bug fixes, add mapstructure for more granular control over …

dgate-cli bug fixes, add mapstructure for more granular control over … #18

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