-
Notifications
You must be signed in to change notification settings - Fork 0
109 lines (99 loc) · 3.08 KB
/
pretty.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: Publishing ready
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-18.04
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Install useful utilities
run: sudo apt-get install -y tree
- name: Checking if LICENSE exists
run: |
FILE=LICENSE
if [ -f "$FILE" ]; then
echo "File "$FILE" exists."
exit 0
else
echo "File $FILE does not exist."
exit 1
fi
- name: Checking if Apache License Version 2.0, January 2004 is being used
run: |
if grep --quiet "Apache License" LICENSE && grep --quiet "Version 2.0, January 2004" LICENSE; then
echo "Using Apache License Version 2.0, January 2004"
exit 0
else
echo "Not using Apache License Version 2.0, January 2004"
exit 1
fi
- name: Checking if CONTRIBUTING guide exists
run: |
FILE=CONTRIBUTING.md
if [ -f "$FILE" ]; then
echo "File "$FILE" exists."
exit 0
else
echo "File $FILE does not exist."
exit 1
fi
- name: Checking if README file exists
run: |
FILE=README.md
if [ -f "$FILE" ]; then
echo "File "$FILE" exists."
exit 0
else
echo "File $FILE does not exist."
exit 1
fi
- name: Checking if copyrighted to Pittsburgh Supercomputing Center
run: |
if grep --quiet "Pittsburgh Supercomputing Center. All Rights Reserved." README.md; then
echo "Copyright (c) Pittsburgh Supercomputing Center"
exit 0
else
echo "No reference to Pittsburgh Supercomputing Center"
exit 1
fi
- name: Checking if there exists at least one Singularity definition file
run: |
FILE=Singularity
if [ $(find . -name "$FILE" -mmin -5 | wc -l) -gt 0 ]; then
echo "File "$FILE" was found.";
exit 0
else
echo "File "$FILE" was not found.";
exit 1
fi
- name: Checking if there exists at least one build script
run: |
FILE=build.sh
if [ $(find . -name "$FILE" -mmin -5 | wc -l) -gt 0 ]; then
echo "File "$FILE" was found.";
exit 0
else
echo "File "$FILE" was not found.";
exit 1
fi
- name: Checking if there exists at least one remote build script
run: |
FILE=rbuild.sh
if [ $(find . -name "$FILE" -mmin -5 | wc -l) -gt 0 ]; then
echo "File "$FILE" was found.";
exit 0
else
echo "File "$FILE" was not found.";
exit 1
fi
- name: Checking if there exists at least one test script
run: |
FILE=test.sh
if [ $(find . -name "$FILE" -mmin -5 | wc -l) -gt 0 ]; then
echo "File "$FILE" was found.";
exit 0
else
echo "File "$FILE" was not found.";
exit 1
fi