Skip to content

Commit

Permalink
chore(workflows): update job_test_agent_integration.yaml to use pkg a…
Browse files Browse the repository at this point in the history
…nd services

feat(workflows): add job_test_agent_local.yaml for testing agent locally
feat(workflows): add test_agent_local job to pr.yaml for local agent testing
  • Loading branch information
chronark committed Sep 20, 2024
1 parent ad026f4 commit fd2e682
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 6 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/job_test_agent_integration.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test Agent Integration
name: Test Agent Local
on:
workflow_call:
inputs:
Expand All @@ -24,8 +24,5 @@ jobs:
working-directory: apps/agent

- name: Test
run: go test -cover -json -timeout=60m -failfast ./integration/... | tparse -all -progress -smallscreen
env:
CLUSTER_TEST: true
AGENT_BASE_URL: ${{ inputs.agentBaseUrl }}
run: go test -cover -json -timeout=60m -failfast ./pkg/... ./services/... | tparse -all -progress
working-directory: apps/agent
31 changes: 31 additions & 0 deletions .github/workflows/job_test_agent_local.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test Agent Integration
on:
workflow_call:
inputs:
agentBaseUrl:
required: true
type: string


jobs:
test_agent_integration:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Install
uses: ./.github/actions/install
with:
go: true


- name: Build
run: task build
working-directory: apps/agent

- name: Test
run: go test -cover -json -timeout=60m -failfast ./integration/... | tparse -all -progress -smallscreen
env:
CLUSTER_TEST: true
AGENT_BASE_URL: ${{ inputs.agentBaseUrl }}
working-directory: apps/agent
4 changes: 3 additions & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ jobs:
name: Test API
uses: ./.github/workflows/job_test_api_local.yaml


test_agent_local:
name: Test Agent Local
uses: ./.github/workflows/job_test_agent_local.yaml
# test_agent_integration:
# name: Test Agent Integration
# runs-on: ubuntu-latest
Expand Down

0 comments on commit fd2e682

Please sign in to comment.