Skip to content

Commit

Permalink
feat(ci): add cd test for cloud run testing
Browse files Browse the repository at this point in the history
  • Loading branch information
shivanshkc committed Jul 12, 2022
1 parent d07e9f5 commit d09a2bc
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/cd-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CD-Test
on:
# Runs on all push events.
push:

permissions:
# Can only read the source code.
contents: read

jobs:
lint:
name: Lint
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/lint

test:
name: Test
needs: lint
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/test

build:
name: Build
needs: test
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/build

deploy:
name: Deploy
needs: build
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/deploy
with:
service-account-email: ${{ secrets.SERVICE_ACCOUNT_EMAIL }}
service-account-key: ${{ secrets.SERVICE_ACCOUNT_KEY }}
project-id: ${{ secrets.GCP_PROJECT_ID }}
region: ${{ secrets.GCP_REGION }}
repository: ${{ secrets.GCP_REPOSITORY_NAME }}
service: ${{ secrets.GCP_SERVICE_NAME }}

0 comments on commit d09a2bc

Please sign in to comment.