Skip to content

feat: add argo workflow JobAgent #15

feat: add argo workflow JobAgent

feat: add argo workflow JobAgent #15

Workflow file for this run

name: Apps / Relay
on:
pull_request:
branches: ["*"]
paths:
- apps/relay/**
- .github/workflows/apps-relay.yaml
push:
branches: ["main"]
paths:
- apps/relay/**
- .github/workflows/apps-relay.yaml
jobs:
tests:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
defaults:
run:
working-directory: apps/relay
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.25"
- name: Cache Go modules
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install dependencies
run: go mod download
- name: Run tests with coverage
run: go test -race ./...
build:
uses: ./.github/workflows/build-image.yaml
secrets: inherit
with:
image-name: ctrlplane/relay
dockerfile: apps/relay/Dockerfile
context: apps/relay
platform: "linux/amd64"