Skip to content

feat: add GOAT strategy with dynamic technique selection for RedTeamAgent #728

feat: add GOAT strategy with dynamic technique selection for RedTeamAgent

feat: add GOAT strategy with dynamic technique selection for RedTeamAgent #728

Workflow file for this run

name: javascript-ci
on:
push:
branches:
- main
paths:
- "javascript/**"
- ".github/workflows/javascript-ci.yml"
pull_request:
paths:
- "javascript/**"
- ".github/workflows/javascript-ci.yml"
workflow_dispatch:
env:
CI: true
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci-checks:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
strategy:
matrix:
node-version: [24.x]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 10.22.0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
cache-dependency-path: "javascript/pnpm-lock.yaml"
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
working-directory: javascript
# Covers typecheck
- name: Build
run: pnpm build:all
working-directory: javascript
- name: Lint
run: pnpm lint:all
working-directory: javascript
- name: Type check
run: pnpm typecheck:all
working-directory: javascript
- name: Tests
run: pnpm run test:ci
working-directory: javascript
# Examples
- name: Test (Examples)
run: pnpm -F vitest-examples test
env:
LANGWATCH_API_KEY: ${{ secrets.LANGWATCH_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
working-directory: javascript