-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
85 lines (66 loc) · 3.08 KB
/
action.yml
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# This is a workflow that is able to create temporary urls for the test cases and dataset files.
# Trigger: Input cross check completed successfully.
# Input: The directory path of a test case or dataset file.
# Output: Four urls that are needed for a test case: 1. the test case url, 2. the corresponding dataset url, 3. the ontology url, 4. The OWL ontology url.
# The name of the workflow
name: Create URL
# The event that triggers the action.
on:
push:
jobs:
# This workflow contains a job called "temporary-urls"
temporary-urls:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps that are executed for this job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so the job can access it
- uses: actions/checkout@v2
- name: testcase-url
run: |
cd ontology-network
cd musical-performance-ontology
while read -r line; do
line="$line"
echo "Line read from file - $line"
base="https://raw.githubusercontent.com/FiorelaCiroku/XD-Testing/main/ontology-network/musical-performance-ontology/"
CQbase="/SPARQLUnitTest/CQTestCase"
IVbase="/InferenceVerificationTest/IVTestCase/"
EPbase="/ErrorProvocationTest/EPTestCase/"
echo "$CQtestcase"
echo "$IVtestcase"
echo "$EPtestcase"
CQtestcase="$base$line$CQbase"
IVtestcase="$base$line$IVbase"
EPtestcase="$base$line$EPbase"
echo "The prefixes of the test cases are is $CQtestcase, $IVtestcase, $EPtestcase."
done < UserInput.txt
- name: dataset-url
run: |
cd ontology-network
cd musical-performance-ontology
while read -r line; do
line="$line"
echo "Line read from file - $line"
base="https://raw.githubusercontent.com/FiorelaCiroku/XD-Testing/main/ontology-network/musical-performance-ontology/"
CQbase="SPARQLUnitTest/CQDataSet/"
IVbase="/InferenceVerificationTest/IVDataSet/"
EPbase="/ErrorProvocationTest/EPDataSet/"
echo "$CQtestcase"
echo "$IVtestcase"
echo "$EPtestcase"
CQtestcase="$base$line$CQbase"
IVtestcase="$base$line$IVbase"
EPtestcase="$base$line$EPbase"
echo "The prefixes of the data sets are is $CQtestcase, $IVtestcase, $EPtestcase."
done < UserInput.txt
- name: ontology-url
run: |
echo "$ontologyURL"
ontologyURL="https://raw.githubusercontent.com/FiorelaCiroku/XD-Testing/main/ontology-network/musical-performance-ontology/Situation/OWLFile.owl"
echo "The URL of the ontology is $ontologyURL"
- name: OWL-url
run: |
echo "$OWLURL"
OWLURL="https://w3id.org/OWLunit/ontology/"
echo "The URL of the OWL ontology is $OWLURL"