-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.28 KB
/
sdk_validation.yaml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Validate
on:
workflow_call:
pull_request:
types: [ opened, reopened, synchronize ]
jobs:
check:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
SHIPPO_TOKEN: ${{ env.DEV_MAIN_SPEAKEASY_API_KEY_SHIPPO_TOKEN }}
concurrency:
group: php-sdk-check
steps:
- name: "Authenticate with AWS"
uses: goshippo/shippo-action-workflows/.github/actions/[email protected]
with:
environment: dev-main
oidc-name: shippo-php-sdk-pipeline
login-to-ecr: false
- name: Get Speakeasy API Key
uses: aws-actions/aws-secretsmanager-get-secrets@v2
with:
secret-ids: |
dev-main-speakeasy-api-key
name-transformation: uppercase
parse-json-secrets: true
- name: Check out repository
uses: actions/checkout@v4
- name: Set up PHP
id: setup_php
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
- name: cache dependencies
uses: actions/cache@v4
with:
path: ./vendor
key: python-${{ steps.setup_python.outputs.python-version }}-${{ hashFiles('setup.py') }}
- name: Install dependencies
run: |
make install
- name: Check
run: make check