Reference
GitHub Action
Integrate the CodeBeaver open source module into your CI/CD
CodeBeaver can be used in a GitHub Action to run unit tests on every commit and E2E tests after you release a new version.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Integrate the CodeBeaver open source module into your CI/CD
name: Run CodeBeaver
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: codebeaver-ai/codebeaver-oss-action@0.1.0
with:
action-type: "unit"
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
after-deployment: # In this example, this step runs after a new release is deployed
needs: unit-tests
runs-on: ubuntu-latest
steps:
- uses: codebeaver-ai/codebeaver-os-action@v0.1.0
with:
action-type: "e2e"
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
STARTING_URL: "http://yourstaging.yourwebsite.com"