Skip to content

Commit

Permalink
chore/ci improvements (#288)
Browse files Browse the repository at this point in the history
* run build/test and lint CI on larger runner

* use depot for container builds

* chore(CI): Reduce test noisiness

Set loglevel to info
  • Loading branch information
danielchalef authored Dec 5, 2023
1 parent fb5798c commit d65f2b8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-4c-16GB-150GB
container: debian:bullseye-slim
environment: build-test
services:
Expand Down Expand Up @@ -55,6 +55,7 @@ jobs:
- name: Test
run: CGO_ENABLED=1 go test -tags=testutils -race -p 1 -v ./...
env:
ZEP_LOG_LEVEL: 'info'
ZEP_OPENAI_API_KEY: ${{ secrets.ZEP_OPENAI_API_KEY }}
ZEP_ANTHROPIC_API_KEY: ${{ secrets.ZEP_ANTHROPIC_API_KEY }}
ZEP_STORE_POSTGRES_DSN: 'postgres://postgres:postgres@postgres:5432/?sslmode=disable'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docker-publish-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ jobs:
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v5
- name: Depot build and push image
uses: depot/build-push-action@v1
with:
project: v9jv1mlpwc
context: .
file: Dockerfile.cloud
platforms: linux/amd64,linux/arm64
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ jobs:
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
uses: docker/[email protected]
- name: Depot build and push image
uses: depot/build-push-action@v1
with:
project: v9jv1mlpwc
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ permissions:
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
runs-on: ubuntu-4c-16GB-150GB
steps:
- uses: actions/setup-go@v4
with:
Expand Down

0 comments on commit d65f2b8

Please sign in to comment.