From 47e7b51d1e9d47b50a5442a5b3b8c10668938c3e Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Sun, 1 Mar 2026 14:01:13 +0000 Subject: [PATCH] ci(workflow): add XAI_API_KEY env to tests and switch lint/build to ubuntu-gitea runner - Inject XAI_API_KEY from secrets for test execution. - Update lint and build jobs to run on ubuntu-gitea instead of ubuntu-latest. --- .gitea/workflows/ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 097a8ad..58683b9 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -31,7 +31,10 @@ jobs: run: go mod download - name: Run tests - run: go test -v -race -coverprofile=coverage.out ./... + env: + XAI_API_KEY: ${{ secrets.XAI_API_KEY }} + run: | + go test -v -race -coverprofile=coverage.out ./... - name: Upload coverage uses: codecov/codecov-action@v4 @@ -41,7 +44,7 @@ jobs: lint: name: Lint - runs-on: ubuntu-latest + runs-on: ubuntu-gitea steps: - name: Checkout code uses: actions/checkout@v4 @@ -58,7 +61,7 @@ jobs: build: name: Build - runs-on: ubuntu-latest + runs-on: ubuntu-gitea steps: - name: Checkout code uses: actions/checkout@v4