Skip to content

Commit

Permalink
fix: workflow bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
bubbajoe committed Apr 21, 2024
1 parent 082cd2d commit f7c6d15
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/built_test_bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,29 @@ on:

jobs:
build_test:
runs-on: golang:1.22-alpine
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: go.mod
cache: true
cache-dependency-path: go.sum

- name: Build & Install
run: |
go mod download
go build -v ./...
- name: Install dgate-cli and dgate-server
run: |
go install github.com/dgate-io/dgate/cmd/dgate-cli
dgate-cli --version
go install github.com/dgate-io/dgate/cmd/dgate-server
dgate-server --version
- name: Test
run: |
go test -coverprofile=cov.out -v ./...
Expand All @@ -32,9 +44,14 @@ jobs:
run: |
go test -bench=. -run=^# ./...
# needs jq, dgate-cli, and curl
- name: Install jq
run: |
sudo apt install -y jq
jq --version
- 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
1 change: 0 additions & 1 deletion .github/workflows/performance_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:

- name: Wait for server to start
run: sleep 5
- run: ./functional-tests/admin_tests/performance_test_prep.sh

- name: Run local k6 test
uses: grafana/k6-action@v0.3.1
Expand Down

0 comments on commit f7c6d15

Please sign in to comment.