-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change Code Owners So Core Enablement can start reviewing the changes (…
…#2) * add codeowner for entire codebase to core-enablement * update makefile * initial patch for running tests in pipeline * troubleshooting * more troubleshooting b/c local cannot replicate * no null checks * revert test changes and update github workflow doc * revert changes for pipeline, missed env var earlier * update generate workflow to pull apie key from secrets * better naming convention :) * attempt pulling in shippo token from secrets * next attempt * try again * updates to correct yaml on generate and permissions on validate * clean up workflow docs, should extract duplicate effort eventually * spacing for readability * piece apart workflow * encapsulate in steps * grrr * this should be working * another attempt * revert * Update sdk_generation.yaml * Update sdk_generation.yaml * extract work to test * attempt output but will remove b/c not safe * revert * comment out speakeasy portion * attempt speakeasy generate portion now * remove retrieve action and update generation * restructure again * Update sdk_generation.yaml * Update sdk_generation.yaml * Update sdk_generation.yaml * Update sdk_generation.yaml * Update sdk_generation.yaml * Update sdk_generation.yaml * Update sdk_generation.yaml * Update sdk_generation.yaml * Update sdk_generation.yaml * update again * change to github_output * reset generation workflow and update secret name from GH secrets
- Loading branch information
Showing
5 changed files
with
37 additions
and
16 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @goshippo/core-enablement |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
name: Validate | ||
permissions: | ||
contents: write | ||
id-token: write | ||
|
||
on: | ||
workflow_call: | ||
|
@@ -9,25 +12,44 @@ jobs: | |
check: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
env: | ||
SHIPPO_TOKEN: ${{ secrets.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 Secrets Manager | ||
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 | ||
run: make check | ||
env: | ||
SHIPPO_TOKEN: ${{ env.DEV_MAIN_SPEAKEASY_API_KEY_SHIPPO_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters