Skip to content

Commit f5d1b30

Browse files
committed
refactor: Use speakeasy test directly
The Speakeasy maintained GHA for testing does not actually run tests unless `.speakeasy/gen.yaml` or `.speakeasy/workflow.yaml` are modified (making the test job pretty unreliable). This is as of 2025-06-04. Replace the workflow generated by `speakeasy config tests` with a simpler workflow that actually runs the tests.
1 parent 36db8e8 commit f5d1b30

File tree

2 files changed

+33
-26
lines changed

2 files changed

+33
-26
lines changed

.github/workflows/sdk_test.yaml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/test.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
workflow_dispatch:
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
# NOTE: when ran from a fork, the secrets will not be available -- just skip the
13+
# job instead of failing
14+
if: ${{ secrets.SPEAKEASY_API_KEY != '' }}
15+
16+
env:
17+
SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }}
18+
19+
steps:
20+
- name: Set up mise
21+
uses: jdx/mise-action@v2
22+
with:
23+
cache: true
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
27+
- name: Setup Speakeasy CLI
28+
uses: gleanwork/open-api/.github/actions/speakeasy-setup@main
29+
with:
30+
github-token: ${{ secrets.GITHUB_TOKEN }}
31+
32+
# run the glean target specified in .speakeasy/workflow.yaml
33+
- run: speakeasy test --target glean

0 commit comments

Comments
 (0)