Skip to content

Commit

Permalink
initial setup
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirlucas committed Jan 22, 2025
1 parent f756b40 commit 4db4c82
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/actions/frontend-repo-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ inputs:
checkout_path:
description: "Relative path under $GITHUB_WORKSPACE to place the repository"
required: false
checkout_token:
description: "Github Token for when checking out a different repository"
required: false
outputs:
LATEST_TAG:
description: "Latest tag"
Expand Down
30 changes: 30 additions & 0 deletions .github/actions/integration-checks/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Integration Checks"
description: "Checks for FE <-> BE Integration"
inputs:
frontend:
description: "Ref for checkout"
required: false
backend:
description: "Fetch depth for checkout"
required: false
gcloud_credentials_json:
description: "GCLOUD credentials"
required: true
checkout_token:
description: "Github Token"
required: false
runs:
using: "composite"
steps:
- name: Setup
uses: ../frontend-repo-setup
with:
checkout_path: api-client-source
checkout_repo: Chili-Piper/frontend
checkout_token: ${{ inputs.checkout_token }}
- name: Authenticate to CPCLOUD
uses: google-github-actions/auth@v1
with:
credentials_json: ${{ inputs.gcloud_key }}
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v2
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: TEST

on:
pull_request:
branches: [main]

jobs:
test:
name: test
runs-on: [cp-small]
env:
GCLOUD_KEY: ${{ secrets.CPCLOUD_GCLOUD_KEY }}
GITHUB_TOKEN: ${{ secrets.CREATE_PR_PAT }}
steps:
- uses: ./actions/integration-checks
with:
gcloud_credentials_json: ${{ env.GCLOUD_KEY }}
checkout_token: ${{ env.GITHUB_TOKEN }}

0 comments on commit 4db4c82

Please sign in to comment.