Skip to content

add gh action for tests #7

add gh action for tests

add gh action for tests #7

Workflow file for this run

name: Test
permissions:
checks: write
contents: write
pull-requests: write
statuses: write
id-token: write
"on":
workflow_dispatch:
inputs:
target:
description: Provided SDK target to run tests for, (all) is valid
type: string
pull_request:
branches:
- main
- enable-tests-gh
paths:
- '**'
jobs:
test:
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-test.yaml@v15
with:
target: ${{ github.event.inputs.target || 'vercel' }}
secrets:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
npm_token: ${{ secrets.NPM_TOKEN_ELEVATED }}

Check failure on line 27 in .github/workflows/sdk_test.yaml

View workflow run for this annotation

GitHub Actions / Test

Invalid workflow file

The workflow is not valid. .github/workflows/sdk_test.yaml (Line: 27, Col: 18): Invalid secret, npm_token is not defined in the referenced workflow.
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}