Skip to content

Commit

Permalink
add code analysis, fix typos and rename workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
bubbajoe committed Apr 22, 2024
1 parent 770afef commit ef23625
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: DGate Build/Test/Bench
name: DGate CI

on:
push:
Expand All @@ -24,8 +24,8 @@ jobs:
- name: Test
run: |
go test -coverprofile=cov.out -v ./...
go tool cover -func=cov.out
go test -coverprofile=coverage.txt -v ./...
go tool cover -func=coverage.txt
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "CodeQL"

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'go' ]

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: DGate Functional Test
name: DGate E2E

on:
push:
Expand Down
4 changes: 1 addition & 3 deletions functional-tests/admin_tests/merge_responses_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ dgate-cli domain create \
patterns:='["test.com"]' \
namespace=test-ns

dgate-cli domain

MOD_B64="$(base64 < $DIR/merge_responses.ts)"
dgate-cli module create \
name=printer \
Expand All @@ -32,6 +30,6 @@ dgate-cli route create \
preserveHost:=true \
namespace=test-ns

curl -s --fail-with-body ${PROXY_URL}/hello -H Host:test.com
curl -s --fail-with-body ${PROXY_URL}/hello -H Host:test.com

echo "Merge Responses Test Passed"

0 comments on commit ef23625

Please sign in to comment.