Skip to content

fix: ai-proxy-cd.yaml #16

fix: ai-proxy-cd.yaml

fix: ai-proxy-cd.yaml #16

Workflow file for this run

name: CI / AI Proxy
on:
pull_request:
branches:
- "**"
paths:
- ".github/workflows/ai-proxy-ci.yaml"
- "go/ai-proxy/**"
permissions:
contents: read
env:
GOPATH: /home/runner/go/
GOPROXY: "https://proxy.golang.org"
jobs:
build:
name: Build
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: go/ai-proxy
timeout-minutes: 5
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
go-version-file: go/ai-proxy/go.mod
cache: true
- run: go mod download
- run: PATH=$PATH:$GOPATH/bin make --directory=.. tools
- run: PATH=$PATH:$GOPATH/bin make build
check:
name: Check
runs-on: ubuntu-20.04
defaults:
run:
shell: bash
working-directory: go/ai-proxy
timeout-minutes: 5
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
go-version-file: go/ai-proxy/go.mod
cache: true
- run: go mod download
- run: PATH=$PATH:$GOPATH/bin make --directory=.. tools
- run: PATH=$PATH:$GOPATH/bin make check