Skip to content

Commit

Permalink
Merge branch 'master' into update-www-npm-packages-202302
Browse files Browse the repository at this point in the history
  • Loading branch information
chrieinv authored Aug 25, 2023
2 parents 6dfd24d + 31d578d commit 38e921c
Show file tree
Hide file tree
Showing 474 changed files with 18,894 additions and 26,072 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
root = true

[localSetup/projects/nginx/**.conf]
[localSetup/projects/nginx/**]
charset = utf-8
end_of_line = lf
indent_size = 2
Expand Down
3 changes: 0 additions & 3 deletions .github/actions/awsDeploy/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ runs:
run: |
echo "" >> ./chart/Chart.yaml
echo "appVersion: \"${{ inputs.version }}\"" >> ./chart/Chart.yaml
cat ./chart/Chart.yaml
- name: Create values string for helm command
id: helm-values
Expand All @@ -79,11 +78,9 @@ runs:
if kubectl -n edlib get configmap edlib-helm-config; then
kubectl -n edlib get configmap edlib-helm-config -o jsonpath="{.data.values}" > values.yaml
HELM_VALUES="$HELM_VALUES -f ./values.yaml "
cat values.yaml
elif [ -f "./chart/values/${{ inputs.environment }}.yaml" ]; then
HELM_VALUES="$HELM_VALUES -f ./chart/values/${{ inputs.environment }}.yaml "
fi
echo $HELM_VALUES
echo "helm-values=$HELM_VALUES" >> $GITHUB_OUTPUT
- name: helm deploy
Expand Down
8 changes: 8 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
component_management:
individual_components:
- component_id: "contentauthor"
paths:
- "sourcecode/apis/contentauthor/**"

comment:
layout: "header, diff, flags, components" # show component info in the PR comment
8 changes: 4 additions & 4 deletions .github/workflows/api-auth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
fetch-depth: 0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Build test image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
tags: "test:latest"
outputs: "type=docker"
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:

- name: Build and push app
if: env.shouldPublishImage == '1'
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
push: true
tags: public.ecr.aws/f0t8l9h1/api-auth-app:${{ inputs.versionToRelease }}
Expand All @@ -74,7 +74,7 @@ jobs:

- name: Build and push migration container
if: env.shouldPublishImage == '1'
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
push: true
tags: public.ecr.aws/f0t8l9h1/api-auth-migration:${{ inputs.versionToRelease }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/api-common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
fetch-depth: 0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
Expand All @@ -89,7 +89,7 @@ jobs:

- name: Build and push web container
id: docker_build_web
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
push: true
tags: public.ecr.aws/f0t8l9h1/api-common-web:${{ inputs.versionToRelease }}
Expand All @@ -100,7 +100,7 @@ jobs:

- name: Build and push fpm container
id: docker_build_fpm
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
push: true
tags: public.ecr.aws/f0t8l9h1/api-common-fpm:${{ inputs.versionToRelease }}
Expand All @@ -111,7 +111,7 @@ jobs:

- name: Build and push migration container
id: docker_build_migration
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
push: true
tags: public.ecr.aws/f0t8l9h1/api-common-migration:${{ inputs.versionToRelease }}
Expand Down
22 changes: 14 additions & 8 deletions .github/workflows/api-contentauthor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.2

- name: Manage php-cs-fixer cache
uses: actions/cache@v3
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.2
extensions: oauth, sockets, zip
coverage: pcov

Expand Down Expand Up @@ -128,10 +128,10 @@ jobs:
fetch-depth: 0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Build test image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
tags: "contentauthor-test:latest"
outputs: "type=docker"
Expand All @@ -142,7 +142,13 @@ jobs:

- name: Run tests
run: |
docker run contentauthor-test
docker run -v "$(pwd):/reports" contentauthor-test \
vendor/bin/phpunit --coverage-clover /reports/coverage.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: sourcecode/apis/contentauthor/coverage.xml
fail_ci_if_error: true

- name: Configure AWS Credentials
if: env.shouldPublishImage == '1'
Expand All @@ -161,7 +167,7 @@ jobs:

- name: Build and push web container
if: env.shouldPublishImage == '1'
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
push: true
tags: public.ecr.aws/f0t8l9h1/api-contentauthor-app:${{ inputs.versionToRelease }}
Expand All @@ -172,7 +178,7 @@ jobs:

- name: Build and push production container
if: env.shouldPublishImage == '1'
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
push: true
tags: public.ecr.aws/f0t8l9h1/api-contentauthor-phpfpm:${{ inputs.versionToRelease }}
Expand All @@ -183,7 +189,7 @@ jobs:

- name: Build and push startup container
if: env.shouldPublishImage == '1'
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
push: true
tags: public.ecr.aws/f0t8l9h1/api-contentauthor-deploy:${{ inputs.versionToRelease }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/api-lti.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
fetch-depth: 0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
Expand All @@ -69,7 +69,7 @@ jobs:

- name: Build and push app
id: docker_build_app
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
push: true
tags: public.ecr.aws/f0t8l9h1/api-lti-app:${{ inputs.versionToRelease }}
Expand All @@ -80,7 +80,7 @@ jobs:

- name: Build and push migration container
id: docker_build_migration
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
push: true
tags: public.ecr.aws/f0t8l9h1/api-lti-migration:${{ inputs.versionToRelease }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/api-resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
fetch-depth: 0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
Expand All @@ -69,7 +69,7 @@ jobs:

- name: Build and push app
id: docker_build_app
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
push: true
tags: public.ecr.aws/f0t8l9h1/api-resources-app:${{ inputs.versionToRelease }}
Expand All @@ -80,7 +80,7 @@ jobs:

- name: Build and push migration container
id: docker_build_migration
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
push: true
tags: public.ecr.aws/f0t8l9h1/api-resources-migration:${{ inputs.versionToRelease }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/api-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
fetch-depth: 0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
Expand All @@ -65,7 +65,7 @@ jobs:

- name: Build and push app
id: docker_build_app
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
push: true
tags: public.ecr.aws/f0t8l9h1/api-version-app:${{ inputs.versionToRelease }}
Expand All @@ -76,7 +76,7 @@ jobs:

- name: Build and push migration container
id: docker_build_migration
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
push: true
tags: public.ecr.aws/f0t8l9h1/api-version-migration:${{ inputs.versionToRelease }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docs-edlib-com.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ jobs:
node-version: 14

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Build to ensure everything works
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
tags: "build:latest"
context: ${{ env.workingDirectory }}
Expand All @@ -61,7 +61,7 @@ jobs:
- name: Build and push app
if: env.shouldPublishImage == '1'
id: docker_build_app
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
push: true
tags: public.ecr.aws/f0t8l9h1/docs-edlib-com:${{ inputs.versionToRelease }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/proxy-admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
- uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Build base image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
tags: "build:latest"
outputs: "type=docker"
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
- name: Build and push app
if: ${{ inputs.versionToRelease }}
id: docker_build_app
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
push: true
tags: public.ecr.aws/f0t8l9h1/proxy-admin-app:${{ inputs.versionToRelease }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/proxy-auth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
fetch-depth: 0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
Expand All @@ -69,7 +69,7 @@ jobs:

- name: Build and push app
id: docker_build_app
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
push: true
tags: public.ecr.aws/f0t8l9h1/proxy-auth-app:${{ inputs.versionToRelease }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/proxy-lti.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
fetch-depth: 0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
Expand All @@ -69,7 +69,7 @@ jobs:

- name: Build and push app
id: docker_build_app
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
push: true
tags: public.ecr.aws/f0t8l9h1/proxy-lti-app:${{ inputs.versionToRelease }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/proxy-resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
- uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Build test image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
tags: "test:latest"
outputs: "type=docker"
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
- name: Build and push app
if: env.shouldPublishImage == '1'
id: docker_build_app
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
push: true
tags: public.ecr.aws/f0t8l9h1/proxy-resource-app:${{ inputs.versionToRelease }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/www.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ jobs:
fetch-depth: 0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Build base image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
tags: "build:latest"
context: ${{ env.workingDirectory }}
Expand All @@ -58,7 +58,7 @@ jobs:
- name: Build and push app
if: ${{ inputs.versionToRelease }}
id: docker_build_app
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
push: true
tags: public.ecr.aws/f0t8l9h1/www-app:${{ inputs.versionToRelease }}
Expand Down
Loading

0 comments on commit 38e921c

Please sign in to comment.