Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding GitHub Workflow instead of TravisCI
- Loading branch information
Showing
3 changed files
with
56 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: "checks" | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
|
||
jobs: | ||
checks: | ||
name: "Checks" | ||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
with: | ||
fetch-depth: 1 | ||
- uses: gaurav-nelson/github-action-markdown-link-check@0.4.0 | ||
|
||
- name: "Install Node.js 12" | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
|
||
- name: "Install markdownlint-cli" | ||
run: npm install -g markdownlint-cli | ||
|
||
- name: "Run markdownlint" | ||
run: find . -path ./node_modules -prune -o -name "*.md" -print0 | xargs -t -0 markdownlint | ||
|
||
- name: "Checking the duplicate Video Length values which should unlikely be the same" | ||
run: | | ||
export DUPLICATE_VIDEO_LENGTH=`grep '* Video Length:' README.md | sort | uniq -d` | ||
if `echo "${DUPLICATE_VIDEO_LENGTH}" | grep Video`; then | ||
echo -e "\n*** Found duplicate Video Length values which is probably copy&paste typo." | ||
exit 1 | ||
else | ||
echo -e "\n*** Test OK" | ||
fi | ||
- name: "Check if the tutorials are properly sorted" | ||
run: | | ||
grep "^###" README.md > /tmp/tutorials | ||
grep "^###" README.md | sort --ignore-case --version-sort > /tmp/sorted_tutorials | ||
if sdiff /tmp/tutorials /tmp/sorted_tutorials; then | ||
echo -e "\n*** Test OK" | ||
else | ||
echo -e "\n*** Tutorials are not properly sorted!" | ||
exit 1 | ||
fi | ||
- name: "Check if the all screenshots are mentioned in main README file" | ||
run: | | ||
for FILE in screenshots/*; do | ||
if ! grep -q "$FILE" README.md; then | ||
echo "*** Missing $FILE in README.md" | ||
fi | ||
done |
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-258 KB
...arktable_Workflow_and_Editing_Tutorial_-_Ubuntu_-_Linux_-_Photography-09:50.jpg
Binary file not shown.