-
Notifications
You must be signed in to change notification settings - Fork 9
33 lines (27 loc) · 805 Bytes
/
test.yaml
File metadata and controls
33 lines (27 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 != '' }}
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