summaryrefslogtreecommitdiffstats
path: root/.github/actions
diff options
context:
space:
mode:
authorChristian Brabandt <cb@256bit.org>2024-05-15 21:48:11 +0200
committerChristian Brabandt <cb@256bit.org>2024-05-15 21:48:11 +0200
commit8314de8fd4aa4d18fc524f960f5d683a2d8cba32 (patch)
treea3e093bdda5bee335de79342a39960de86c80bd9 /.github/actions
parenteff20eb35d2dba413c6d115291dd9ddea705e802 (diff)
CI: Upload failed screendump tests when run in github actions
It's a bit of a pain to debug failing screendump tests without knowing exactly what went wrong. Therefore include actions/upload-artifact for the Github CI runners and have them uploaded those failing screen dump tests automatically. Let's add this step to each of the Linux/MacOS/Windows workflows but do not duplicate the code, factor it out to a single file .github/actions/screendump/action.yml and reference this one from the main ci.yml file Example: https://github.com/chrisbra/vim/actions/runs/9085493619 closes: #14771 Co-authored-by: dundargoc <gocdundar@gmail.com> Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to '.github/actions')
-rw-r--r--.github/actions/screendump/action.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/actions/screendump/action.yml b/.github/actions/screendump/action.yml
new file mode 100644
index 0000000000..19eb9b6d0c
--- /dev/null
+++ b/.github/actions/screendump/action.yml
@@ -0,0 +1,26 @@
+name: 'screendump'
+description: "Upload failed syntax tests"
+runs:
+ using: "composite"
+ steps:
+ - name: Upload failed syntax tests
+ uses: actions/upload-artifact@v4
+ with:
+ # Name of the artifact to upload.
+ name: ${{ github.workflow }}-${{ github.job }}-${{ join(matrix.*, '-') }}-failed-syntax-tests
+
+ # A file, directory or wildcard pattern that describes what
+ # to upload.
+ path: |
+ ${{ github.workspace }}/runtime/syntax/testdir/failed/*
+ ${{ github.workspace }}/src/testdir/failed/*
+ # The desired behavior if no files are found using the
+ # provided path.
+ if-no-files-found: ignore
+
+ # Duration after which artifact will expire in days. 0 means
+ # using repository settings.
+ retention-days: 0
+
+ # If true, an artifact with a matching name will be deleted
+ overwrite: true