Skip to content

Commit

Permalink
Fixing redirect and adding test (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
trent-codecov authored Dec 4, 2023
1 parent 145712c commit cdc1c9b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,26 @@ jobs:

lint:
name: Run Lint
uses: codecov/gha-workflows/.github/workflows/[email protected].6
uses: codecov/gha-workflows/.github/workflows/[email protected].12

build:
name: Build API
uses: codecov/gha-workflows/.github/workflows/[email protected].6
uses: codecov/gha-workflows/.github/workflows/[email protected].12
secrets: inherit
with:
repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-api' }}

codecovstartup:
name: Codecov Startup
needs: build
uses: codecov/gha-workflows/.github/workflows/[email protected].6
uses: codecov/gha-workflows/.github/workflows/[email protected].12
secrets: inherit

ats:
name: ATS
needs: [build]
if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }}
uses: codecov/gha-workflows/.github/workflows/[email protected].6
uses: codecov/gha-workflows/.github/workflows/[email protected].12
secrets: inherit
with:
repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-api' }}
Expand All @@ -48,15 +48,15 @@ jobs:
test:
name: Test
needs: [build]
uses: codecov/gha-workflows/.github/workflows/[email protected].6
uses: codecov/gha-workflows/.github/workflows/[email protected].12
secrets: inherit
with:
repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-api' }}

build-self-hosted:
name: Build Self Hosted API
needs: [build, test]
uses: codecov/gha-workflows/.github/workflows/[email protected].6
uses: codecov/gha-workflows/.github/workflows/[email protected].12
secrets: inherit
with:
repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-api' }}
Expand All @@ -65,7 +65,7 @@ jobs:
name: Push Staging Image
needs: [build, test]
if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/staging' && github.repository_owner == 'codecov' }}
uses: codecov/gha-workflows/.github/workflows/[email protected].7
uses: codecov/gha-workflows/.github/workflows/[email protected].12
secrets: inherit
with:
environment: staging
Expand All @@ -75,7 +75,7 @@ jobs:
name: Push Production Image
needs: [ build, test ]
if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/main' && github.repository_owner == 'codecov' }}
uses: codecov/gha-workflows/.github/workflows/[email protected].7
uses: codecov/gha-workflows/.github/workflows/[email protected].12
secrets: inherit
with:
environment: production
Expand All @@ -86,7 +86,7 @@ jobs:
needs: [ build-self-hosted, test ]
secrets: inherit
if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/main' && github.repository_owner == 'codecov' }}
uses: codecov/gha-workflows/.github/workflows/[email protected].6
uses: codecov/gha-workflows/.github/workflows/[email protected].12
with:
push_rolling: true
repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-api' }}
2 changes: 1 addition & 1 deletion .github/workflows/self-hosted-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ on:
jobs:
create-release-pr:
name: Create PR for Release ${{ github.event.inputs.versionName }}
uses: codecov/gha-workflows/.github/workflows/[email protected].6
uses: codecov/gha-workflows/.github/workflows/[email protected].12
secrets: inherit
4 changes: 2 additions & 2 deletions .github/workflows/self-hosted-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:
create-release:
name: Tag Release ${{ github.head_ref }} and Push Docker image to Docker Hub
if: ${{ github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/') && github.repository_owner == 'codecov' }}
uses: codecov/gha-workflows/.github/workflows/[email protected].6
uses: codecov/gha-workflows/.github/workflows/[email protected].12
with:
tag_to_prepend: self-hosted-
secrets: inherit

push-image:
needs: [create-release]
if: ${{ github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/') && github.repository_owner == 'codecov' }}
uses: codecov/gha-workflows/.github/workflows/[email protected].6
uses: codecov/gha-workflows/.github/workflows/[email protected].12
secrets: inherit
with:
push_release: true
Expand Down

0 comments on commit cdc1c9b

Please sign in to comment.