Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfc19304

Browse files
authored
Merge pull request#45 from Josee9988/feature/test-gh-actions
"Github actions to check the tests"
2 parents0530ed6 +e1b4f5d commitfc19304

File tree

5 files changed

+37
-3
lines changed

5 files changed

+37
-3
lines changed

‎.github/workflows/shelltest.yml‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# this github actions will run the tests/TESTS_RUNNER.sh script and fial if any of the tests fail.
2+
name:SH Tests runner
3+
4+
on:
5+
push:
6+
branches:[master]
7+
pull_request:
8+
branches:[master]
9+
10+
jobs:
11+
build:
12+
runs-on:${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os:[ubuntu-latest]
16+
17+
steps:
18+
-uses:actions/checkout@v2#checkout into the repository
19+
-name:Run the TEST_RUNNER.sh script
20+
run:./tests/TESTS_RUNNER.sh# run the TESTS_RUNNER.sh script

‎CHANGELOG.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
77

88
---
99

10+
##[Unreleased]
11+
12+
###Added
13+
14+
* A Github actions workflow to check the tests.
15+
* Execute permissions for the SETUP_TEMPLATE.sh script
16+
17+
###Fixed
18+
19+
* Some minor issues with the README.md.
20+
1021
##[**1.10.1**] - 2021-07-16
1122

1223
###Added

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* Manage your issues with**20 issue labels** created just for you!
2626
* Make your_community healthier_ with all the guides like code of conduct, contributing, support, security...
2727
* Learn more with the[official Github guide on creating repositories from a template](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-from-a-template).
28-
* To start using it; "**[click use this template](https://github.com/Josee9988/project-template/generate)**", create your new repository,
28+
* To start using it; "**[click use this template](https://github.com/Josee9988/project-template/generate)**" and create your new repository,
2929
* All the basic setup is made through an easy script that will auto-detect all your data to make it lightning fast! 🗲🗲 clone your new repository and execute the`SETUP_TEMPLATE.sh` shell script to personalize the files with your private details. Check how to execute it[here](https://asciinema.org/a/425259).
3030
* All the markdown follows[MarkdownLint rules](https://github.com/DavidAnson/markdownlint).
3131

@@ -42,10 +42,10 @@ for more information or guidance, follow the [Github guide](https://docs.github.
4242
bash SETUP_TEMPLATE.sh
4343
```
4444

45-
Or you can alsodo it like this:
45+
Or
4646

4747
```bash
48-
chmod u+x SETUP_TEMPLATE.sh&&./SETUP_TEMPLATE.sh
48+
./SETUP_TEMPLATE.sh
4949
```
5050

5151
Additionally, watch*[this video](https://asciinema.org/a/425259)* to see**how to execute the script** or use*`bash SETUP_TEMPLATE.sh --help`* to obtain some extra information.

‎SETUP_TEMPLATE.sh‎

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ y | Y)
127127
rm LICENSE# remove the license
128128
rm -r bin/# remove the bin folder
129129
rm -r tests/2>/dev/null||:# remove the tests folder
130+
rm -r .github/workflows/2>/dev/null||:# remove the workflow folder
130131
writeREADME# write the new README.md
131132
writeCHANGELOG# write the basic structure of the CHANGELOG.md
132133
echo -e"# add your own funding links">.github/FUNDING.yml# remove author's custom funding links

‎tests/TESTS_RUNNER.sh‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
LGREEN='\033[0;32m'
1818
RED='\033[1;31m'
19+
GREEN='\033[1;32m'
1920
NC='\033[0m'# No Color
2021
TESTS_TRASH_DIR="tests/.ignore.tests_trash/"
2122
TEMP_TEST_OUTPUT=".ignore.test_runner_output.txt"
@@ -45,4 +46,5 @@ if grep -q "FAILED" "$TEMP_TEST_OUTPUT"; then # if when running the tests any er
4546
fi
4647

4748
rm"$TEMP_TEST_OUTPUT"2>/dev/null||:
49+
echo -e"\n${GREEN}All tests ran successfully${NC}"
4850
exit 0

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp