forked from sourcenetwork/defradb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e4ef5ec
commit 695e8ad
Showing
3 changed files
with
128 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Copyright 2024 Democratized Data Foundation | ||
# | ||
# Use of this software is governed by the Business Source License | ||
# included in the file licenses/BSL.txt. | ||
# | ||
# As of the Change Date specified in that file, in accordance with | ||
# the Business Source License, use of this software will be governed | ||
# by the Apache License, Version 2.0, included in the file | ||
# licenses/APL.txt. | ||
|
||
name: 'Test Coverage And Save Artifact' | ||
|
||
description: 'Composite action to run the test with coverage and save the report as artifact' | ||
|
||
inputs: | ||
coverage-artifact-name: | ||
description: 'Name of the artifact that will save coverage report' | ||
required: true | ||
default: 'coverage_default' | ||
|
||
coverage-path: | ||
description: 'Path to coverage file' | ||
required: false | ||
default: 'coverage.txt' | ||
|
||
runs: | ||
# This is a composite action, setting this is required. | ||
using: "composite" | ||
|
||
steps: | ||
- name: Run integration tests | ||
shell: bash # It's required for run step to specify shell in a composite action. | ||
run: make test:coverage | ||
|
||
- name: Upload coverage artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
# Make sure the name is always unique per job as artifacts are now immutable. | ||
# Note Issue: https://github.com/actions/upload-artifact/issues/478 | ||
# Solve: https://github.com/actions/upload-artifact/issues/478#issuecomment-1885470013 | ||
name: ${{ inputs.coverage-artifact-name }} | ||
path: ${{ inputs.coverage-path }} | ||
if-no-files-found: error | ||
retention-days: 7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters