Skip to content

Commit

Permalink
ci: add test CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLicense committed Mar 12, 2024
1 parent 7c3bd33 commit c372fba
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
48 changes: 48 additions & 0 deletions .github/workflows/ci-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI

on:
pull_request:

permissions:
contents: read

jobs:
app:
name: App
concurrency:
group: app-${{ matrix.project }}-${{ needs.get-version.outputs[matrix.project] }}
strategy:
fail-fast: false
matrix:
project:
- api
- selfserve
- internal
uses: ./.github/workflows/php.yaml
with:
project: ${{ matrix.project }}
should-upload-artefact: true
artefact-name: app-${{ matrix.project}}-test
retention-days: 1
permissions:
contents: read

docker:
name: Docker
concurrency:
group: docker-${{ matrix.project }}-test
strategy:
fail-fast: false
matrix:
project:
- api
- selfserve
- internal
uses: ./.github/workflows/docker.yaml
with:
project: ${{ matrix.project }}
app-artefact-name: app-${{ matrix.project}}-test
should-upload-artefact-to-ecr: false
permissions:
contents: read
id-token: write
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CI

on:
pull_request:
workflow_dispatch:

permissions:
contents: read
Expand Down

0 comments on commit c372fba

Please sign in to comment.