Skip to content

fix release

fix release #5

Workflow file for this run

name: ci

Check failure on line 1 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

(Line: 27, Col: 9): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.OPENROUTER_API_KEY != ''
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Tidy
run: go mod tidy
- name: Build
run: go build ./...
- name: Test (offline)
env:
AIGIT_DISABLE_AUTOSTART: '1'
run: go test -offline ./...
test-online:
if: ${{ secrets.OPENROUTER_API_KEY != '' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Tidy
run: go mod tidy
- name: Build
run: go build ./...
- name: Test (online)
env:
AIGIT_DISABLE_AUTOSTART: '1'
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
run: go test ./...