Skip to content

Commit

Permalink
ci: remove app matrix for UI improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLicense committed Feb 13, 2024
1 parent eec17c3 commit b97f146
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 24 deletions.
63 changes: 43 additions & 20 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ jobs:
with:
files: |
app/api/**
since_last_remote_commit: true
# since_last_remote_commit: true
- uses: tj-actions/changed-files@v42
id: changed-selfserve-files
with:
files: |
app/selfserve/**
since_last_remote_commit: true
# since_last_remote_commit: true
- uses: tj-actions/changed-files@v42
id: changed-internal-files
with:
files: |
app/internal/**
since_last_remote_commit: true
# since_last_remote_commit: true
- uses: tj-actions/changed-files@v42
id: changed-website-files
with:
Expand Down Expand Up @@ -85,29 +85,52 @@ jobs:
with:
project-path: app/internal

app:
name: App
api:
name: API
concurrency:
group: app-${{ matrix.project }}-${{ needs.get-app-versions.outputs[matrix.project] }}
group: app-api-${{ needs.get-app-versions.outputs.api }}
needs:
- orchestrator
- get-app-versions
if: ${{ needs.orchestrator.outputs.should-build-app }}
strategy:
fail-fast: false
matrix:
project:
- api
- selfserve
- internal
exclude:
- project: ${{ needs.orchestrator.outputs.should-build-app-api && 'ignored' || 'api' }}
- project: ${{ needs.orchestrator.outputs.should-build-app-selfserve && 'ignored' || 'selfserve' }}
- project: ${{ needs.orchestrator.outputs.should-build-app-internal && 'ignored' || 'internal' }}
if: ${{ needs.orchestrator.outputs.should-build-app-api }}
uses: ./.github/workflows/app.yaml
with:
object-prefix: app-api-${{ needs.get-app-versions.outputs.api }}
project: api
should-upload: ${{ contains(github.event.pull_request.labels.*.name, 'deployed') }}
permissions:
contents: read
id-token: write

selfserve:
name: Selfserve
concurrency:
group: app-selfserve-${{ needs.get-app-versions.outputs.selfserve }}
needs:
- orchestrator
- get-app-versions
if: ${{ needs.orchestrator.outputs.should-build-app-selfserve }}
uses: ./.github/workflows/app.yaml
with:
object-prefix: app-selfserve-${{ needs.get-app-versions.outputs.selfserve }}
project: api
should-upload: ${{ contains(github.event.pull_request.labels.*.name, 'deployed') }}
permissions:
contents: read
id-token: write

internal:
name: Internal
concurrency:
group: app-internal-${{ needs.get-app-versions.outputs.internal }}
needs:
- orchestrator
- get-app-versions
if: ${{ needs.orchestrator.outputs.should-build-app-internal }}
uses: ./.github/workflows/app.yaml
with:
object-prefix: app-${{ matrix.project }}-${{ needs.get-app-versions.outputs[matrix.project] }}
project: ${{ matrix.project }}
object-prefix: app-internal-${{ needs.get-app-versions.outputs.internal }}
project: api
should-upload: ${{ contains(github.event.pull_request.labels.*.name, 'deployed') }}
permissions:
contents: read
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/php.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache Composer packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles(format('**/app/{0}/composer.lock', inputs.project)) }}
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache Composer packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles(format('**/app/{0}/composer.lock', inputs.project)) }}
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache Composer packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles(format('**/app/{0}/composer.lock', inputs.project)) }}
Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache Composer packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles(format('**/app/{0}/composer.lock', inputs.project)) }}
Expand Down

0 comments on commit b97f146

Please sign in to comment.