forked from macvim-dev/macvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
65 lines (61 loc) · 2.17 KB
/
action.yml
File metadata and controls
65 lines (61 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: 'test_artifacts'
description: "Upload failed test artifacts"
inputs:
artifact-name:
description: Name of the artifact
required: true
runs:
using: "composite"
steps:
# MacVim: We don't use a matrix within the reused
# workflow, and so would prefer to manually pass
# in the name of the artifact rather than deriving
# it from the matrix automatically like in Vim
# upstream.
# - name: Collect matrix properties for naming
# uses: actions/github-script@v8
# id: matrix-props
# env:
# MATRIX_PROPS: ${{ toJSON(inputs) }}
# with:
# # An array-flattening-to-string JavaScript function.
# script: |
# const f = function (x) { return x.toString().length > 0; }
# const g = function (x) {
# return (Array.isArray(x))
# ? x.filter(f)
# .map((function (h) { return function (y) { return h(y); }; })(g))
# .join('-')
# : x;
# }
# return Object.values(JSON.parse(process.env.MATRIX_PROPS))
# .filter(f)
# .map(g)
# .join('-');
# # By default, the JSON-encoded return value of the function is
# # set as the "result".
# result-encoding: string
- name: Upload failed tests
uses: actions/upload-artifact@v4
with:
# Name of the artifact to upload.
name: ${{ format('GH-{0}-{1}-{2}-{3}-{4}-failed-tests',
github.run_id,
github.run_attempt,
github.job,
strategy.job-index,
inputs.artifact-name) }}
# A file, directory or wildcard pattern that describes what
# to upload.
path: |
${{ github.workspace }}/runtime/indent/testdir/*.fail
${{ 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