mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-14 17:02:56 +00:00
## Problem CI currently uses static credentials in some places. These are less secure and hard to maintain, so we are going to deprecate them and use OIDC auth. ## Summary of changes - ci(fix): Use OIDC auth to upload artifact on s3 - ci(fix): Use OIDC auth to login on ECR
25 lines
840 B
YAML
25 lines
840 B
YAML
name: 'Merge and upload coverage data'
|
|
description: 'Compresses and uploads the coverage data as an artifact'
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Merge coverage data
|
|
shell: bash -euxo pipefail {0}
|
|
run: scripts/coverage "--profraw-prefix=$GITHUB_JOB" --dir=/tmp/coverage merge
|
|
|
|
- name: Download previous coverage data into the same directory
|
|
uses: ./.github/actions/download
|
|
with:
|
|
name: coverage-data-artifact
|
|
path: /tmp/coverage
|
|
skip-if-does-not-exist: true # skip if there's no previous coverage to download
|
|
aws_oicd_role_arn: ${{ inputs.aws_oicd_role_arn }}
|
|
|
|
- name: Upload coverage data
|
|
uses: ./.github/actions/upload
|
|
with:
|
|
name: coverage-data-artifact
|
|
path: /tmp/coverage
|
|
aws_oicd_role_arn: ${{ inputs.aws_oicd_role_arn }}
|