Update test-pipeline.yml

This commit is contained in:
Felix Weiß
2023-06-17 12:54:36 +02:00
committed by GitHub
parent 128b9f9705
commit 5dfa48a89a

View File

@@ -3,6 +3,11 @@ name: Test pipeline
on: on:
workflow_dispatch: workflow_dispatch:
workflow_call: workflow_call:
inputs:
cache-id:
default: 'test-results'
required: false
type: string
push: push:
branches: branches:
- main - main
@@ -64,9 +69,14 @@ jobs:
env: env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- uses: actions/upload-artifact@v3
with:
name: badge-combined
path: ./MewtocolTests/TestResults/badge_combined.svg
- name: Cache test results - name: Cache test results
uses: actions/cache/save@v3 uses: actions/cache/save@v3
with: with:
key: coverage-data key: ${{ inputs.cache-id }}
path: | path: |
${{ github.workspace }}/MewtocolTests/TestResults ${{ github.workspace }}/MewtocolTests/TestResults