Skip to content

Commit

Permalink
ci: remove remote repository checkout & cleanup .github in app/* (#248)
Browse files Browse the repository at this point in the history
* ci: removed repository env dependancy

* ci: removed .github from app folders
  • Loading branch information
jerotire authored Aug 16, 2024
1 parent 0acdc6d commit f793f01
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 465 deletions.
21 changes: 4 additions & 17 deletions .github/workflows/php.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,11 @@ jobs:
defaults:
run:
working-directory: app/${{ inputs.project }}
env:
# Temporary until this repository becomes a mono-repository: https://dvsa.atlassian.net/browse/VOL-4961.
REMOTE_REPOSITORY: ${{ inputs.project == 'api' && 'dvsa/olcs-backend' || format('dvsa/olcs-{0}', inputs.project) }}
steps:
- uses: actions/checkout@v4
with:
repository: ${{ env.REMOTE_REPOSITORY }}
ref: ${{ inputs.ref || null }}
path: app/${{ inputs.project }}
sparse-checkout: app/${{ inputs.project }}
fetch-depth: ${{ !inputs.ref && 1 || 0 }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down Expand Up @@ -64,14 +60,11 @@ jobs:
defaults:
run:
working-directory: app/${{ inputs.project }}
env:
# Temporary until this repository becomes a mono-repository.
REMOTE_REPOSITORY: ${{ inputs.project == 'api' && 'dvsa/olcs-backend' || format('dvsa/olcs-{0}', inputs.project) }}
steps:
- uses: actions/checkout@v4
with:
repository: ${{ env.REMOTE_REPOSITORY }}
ref: ${{ inputs.ref || null }}
sparse-checkout: app/${{ inputs.project }}
path: app/${{ inputs.project }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down Expand Up @@ -116,14 +109,11 @@ jobs:
# defaults:
# run:
# working-directory: app/${{ inputs.project }}
# env:
# # Temporary until this repository becomes a mono-repository: https://dvsa.atlassian.net/browse/VOL-4961.
# REMOTE_REPOSITORY: ${{ inputs.project == 'api' && 'dvsa/olcs-backend' || format('dvsa/olcs-{0}', inputs.project) }}
# steps:
# - uses: actions/checkout@v4
# with:
# repository: ${{ env.REMOTE_REPOSITORY }}
# ref: ${{ inputs.ref || null }}
# sparse-checkout: app/${{ inputs.project }}
# path: app/${{ inputs.project }}
# - name: Setup PHP
# uses: shivammathur/setup-php@v2
Expand Down Expand Up @@ -155,14 +145,11 @@ jobs:
defaults:
run:
working-directory: app/${{ inputs.project }}
env:
# Temporary until this repository becomes a mono-repository: https://dvsa.atlassian.net/browse/VOL-4961.
REMOTE_REPOSITORY: ${{ inputs.project == 'api' && 'dvsa/olcs-backend' || format('dvsa/olcs-{0}', inputs.project) }}
steps:
- uses: actions/checkout@v4
with:
repository: ${{ env.REMOTE_REPOSITORY }}
ref: ${{ inputs.ref || null }}
sparse-checkout: app/${{ inputs.project }}
path: app/${{ inputs.project }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
47 changes: 0 additions & 47 deletions app/api/.github/dependabot.yaml

This file was deleted.

24 changes: 0 additions & 24 deletions app/api/.github/workflows/cd.yaml

This file was deleted.

23 changes: 0 additions & 23 deletions app/api/.github/workflows/ci.yaml

This file was deleted.

83 changes: 0 additions & 83 deletions app/api/.github/workflows/static-analysis.yaml

This file was deleted.

47 changes: 0 additions & 47 deletions app/internal/.github/dependabot.yaml

This file was deleted.

24 changes: 0 additions & 24 deletions app/internal/.github/workflows/cd.yaml

This file was deleted.

23 changes: 0 additions & 23 deletions app/internal/.github/workflows/ci.yaml

This file was deleted.

Loading

0 comments on commit f793f01

Please sign in to comment.