File tree 3 files changed +25
-15
lines changed
3 files changed +25
-15
lines changed Original file line number Diff line number Diff line change 1
1
# GitHub Action to run all my CI tasks.
2
- name : Continuous Integration
2
+ name : Run Required Checks
3
+ run-name : PR Checks for ${{ github.ref_name }}
3
4
4
5
on :
5
6
pull_request :
10
11
permissions : read-all
11
12
12
13
jobs :
13
- ci :
14
+ lint :
15
+ name : Lint Check
14
16
runs-on : ubuntu-latest
15
17
steps :
18
+ - name : Install perltidy
19
+ run : sudo apt-get update && sudo apt-get install -y perltidy
20
+
16
21
- name : Checkout
17
22
uses : actions/checkout@v4
18
23
19
- - name : Setup Bats and bats libs
20
- uses : bats-core/bats-action@2.0.0
21
- with :
22
- detik-install : false
23
- support-install : false
24
- assert-install : false
25
- file-install : false
26
-
27
24
- name : Bootstrap Check
28
25
run : ./script/bootstrap
29
26
30
27
- name : Lint Check
31
28
run : ./script/lint
32
29
30
+ unit_tests :
31
+ name : Unit Tests
32
+ runs-on : ubuntu-latest
33
+ steps :
34
+ - name : Checkout
35
+ uses : actions/checkout@v4
36
+
37
+ - name : Bootstrap Check
38
+ run : ./script/bootstrap
39
+
33
40
- name : Tests
34
41
run : ./script/test
Original file line number Diff line number Diff line change @@ -26,13 +26,15 @@ has() {
26
26
}
27
27
28
28
success () {
29
+ printf " %s %s%s%s\n" \
30
+ " ${checkmark} " " ${green}${bold} " " $1 " " ${reset} "
29
31
success=$(( success + 1 ))
30
- printf " %s %s%s%s\n" " ${checkmark} " " ${green}${bold} " " $1 " " ${reset} "
31
32
}
32
33
33
34
failure () {
35
+ printf " %s %s%s%s\n" \
36
+ " ${crossmark} " " ${red}${bold} " " $1 " " ${reset} "
34
37
failure=$(( failure + 1 ))
35
- printf " %s %s%s%s\n" " ${crossmark} " " ${red}${bold} " " $1 " " ${reset} "
36
38
}
37
39
38
40
instructions () {
@@ -98,7 +100,7 @@ printf '\nsuccesss: %s%d%s failures: %s%d%s\n' "${green}" "${success}" "${reset
98
100
99
101
if (( failure > 0 )) ; then
100
102
printf ' \n%sBootstrap failed!%s\n' " ${red} " " ${reset} "
101
- printf ' %sPlease resolve the above issues.%s\n ' " ${yellow} " " ${reset} "
103
+ instructions " Please fix the issues above and run this script again. "
102
104
exit 1
103
105
else
104
106
printf ' \n%sSuccess! 🎉%s\n' " ${green} " " ${reset} "
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
2
3
- import os , pty , sys
4
-
3
+ import os
4
+ import pty
5
+ import sys
5
6
6
7
sys .exit (
7
8
os .waitstatus_to_exitcode (pty .spawn (sys .argv [1 :], lambda fd : os .read (fd , 1024 )))
You can’t perform that action at this time.
0 commit comments