Skip to content

Commit

Permalink
ci: debug push
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLicense committed Mar 13, 2024
1 parent 1e61edb commit a44f823
Showing 1 changed file with 38 additions and 4 deletions.
42 changes: 38 additions & 4 deletions .github/workflows/ci-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,43 @@ permissions:
contents: read

jobs:
get-version:
name: Get latest app version
runs-on: ubuntu-latest
outputs:
api: ${{ steps.api-version.outputs.version }}
selfserve: ${{ steps.selfserve-version.outputs.version }}
internal: ${{ steps.internal-version.outputs.version }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- id: api-version
uses: ./.github/actions/get-app-version
with:
project-path: app/api
- id: selfserve-version
uses: ./.github/actions/get-app-version
with:
project-path: app/selfserve
- id: internal-version
uses: ./.github/actions/get-app-version
with:
project-path: app/internal
- name: Add to summary
run: |
echo "#### App versions:" >> $GITHUB_STEP_SUMMARY
echo "**API**: \`${{ steps.api-version.outputs.version }}\`" >> $GITHUB_STEP_SUMMARY
echo "**Selfserve**: \`${{ steps.selfserve-version.outputs.version }}\`" >> $GITHUB_STEP_SUMMARY
echo "**Internal**: \`${{ steps.internal-version.outputs.version }}\`" >> $GITHUB_STEP_SUMMARY
app:
name: App
concurrency:
group: app-${{ matrix.project }}-test
group: app-${{ matrix.project }}-${{ needs.get-version.outputs[matrix.project] }}
needs:
- get-version
strategy:
fail-fast: false
matrix:
Expand All @@ -22,7 +55,7 @@ jobs:
with:
project: ${{ matrix.project }}
should-upload-artefact: true
artefact-name: app-${{ matrix.project}}-test
artefact-name: app-${{ matrix.project}}-${{ needs.get-version.outputs[matrix.project] }}
retention-days: 1
permissions:
contents: read
Expand All @@ -31,6 +64,7 @@ jobs:
name: Docker
needs:
- app
- get-version
concurrency:
group: docker-${{ matrix.project }}-test
strategy:
Expand All @@ -43,8 +77,8 @@ jobs:
uses: ./.github/workflows/docker.yaml
with:
project: ${{ matrix.project }}
app-artefact-name: app-${{ matrix.project}}-test
should-upload-artefact-to-ecr: false
app-artefact-name: app-${{ matrix.project}}-${{ needs.get-version.outputs[matrix.project] }}
should-upload-artefact-to-ecr: true
permissions:
contents: read
id-token: write

0 comments on commit a44f823

Please sign in to comment.