Skip to content

chore(speakeasy): Configure speakeasy tests #1

chore(speakeasy): Configure speakeasy tests

chore(speakeasy): Configure speakeasy tests #1

Workflow file for this run

name: Test
on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
# NOTE: when ran from a fork, the secrets will not be available -- just skip the
# job instead of failing
if: ${{ secrets.SPEAKEASY_API_KEY != '' }}

Check failure on line 14 in .github/workflows/test.yaml

View workflow run for this annotation

GitHub Actions / Test

Invalid workflow file

The workflow is not valid. .github/workflows/test.yaml (Line: 14, Col: 9): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.SPEAKEASY_API_KEY != ''
env:
SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }}
steps:
- name: Set up mise
uses: jdx/mise-action@v2
with:
cache: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Speakeasy CLI
uses: gleanwork/open-api/.github/actions/speakeasy-setup@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
# run the glean target specified in .speakeasy/workflow.yaml
- run: speakeasy test --target glean