Skip to content

Commit 5cb33ec

Browse files
committed
Initial commit
0 parents  commit 5cb33ec

28 files changed

Lines changed: 1263 additions & 0 deletions

.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.git
2+
.github
3+
images
4+
tests
5+
.*.yaml
6+
*.yml

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners
2+
3+
* @ruzickap
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: 'Bug: This is a sample issue title'
5+
labels: bug
6+
assignees: ruzickap
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behaviour.
15+
16+
**Expected behaviour**
17+
A clear and concise description of what you expected to happen.
18+
19+
**Screenshots**
20+
If applicable, add screenshots to help explain your problem.
21+
22+
**Your YAML file**
23+
A link to your repository and link to your YAML file
24+
25+
**Additional context**
26+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: GitHub Actions Community Forum
4+
url: https://github.community/t5/GitHub-Actions/bd-p/actions
5+
about: Please ask questions about GitHub Actions here.
6+
- name: GitHub Pages help
7+
url: https://help.github.com/en/github/working-with-github-pages
8+
about: GitHub Pages documentaion here.

.github/ISSUE_TEMPLATE/proposal.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Proposal
3+
about: Suggest an idea for this project
4+
title: 'Proposal: This is a sample title'
5+
labels: proposal
6+
assignees: ruzickap
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe**
11+
A clear and concise description of what the problem is. Ex. I'm always
12+
frustrated when [...]
13+
14+
**Describe the solution you'd like**
15+
A clear and concise description of what you want to happen.
16+
17+
**Describe alternatives you've considered**
18+
A clear and concise description of any alternative solutions or features you've considered.
19+
20+
**Additional context**
21+
Add any other context or screenshots about the feature request here.
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: check-broken-links
2+
3+
on:
4+
schedule:
5+
- cron: '8 8 * * 0'
6+
pull_request:
7+
types: [opened, synchronize]
8+
paths:
9+
- .github/workflows/check-broken-links.yml
10+
push:
11+
branches:
12+
- master
13+
paths:
14+
- .github/workflows/check-broken-links.yml
15+
16+
jobs:
17+
my-broken-link-checker:
18+
runs-on: ubuntu-18.04
19+
steps:
20+
- uses: actions/checkout@v2
21+
22+
- name: Check - container
23+
uses: ruzickap/action-my-broken-link-checker@v1
24+
with:
25+
url: https://google.com
26+
cmd_params: --verbose --ignore-fragments --one-page-only
27+
28+
- name: Check - simple
29+
env:
30+
INPUT_URL: https://google.com
31+
INPUT_CMD_PARAMS: --verbose --ignore-fragments --one-page-only
32+
run: wget -qO- https://raw.githubusercontent.com/ruzickap/action-my-broken-link-checker/v1/entrypoint.sh | bash
33+
34+
- name: Check - simple - local pages
35+
env:
36+
INPUT_URL: https://my-testing-domain.com
37+
INPUT_PAGES_PATH: ./tests/
38+
INPUT_CMD_PARAMS: --skip-tls-verification --verbose
39+
run:
40+
wget -qO- https://raw.githubusercontent.com/ruzickap/action-my-broken-link-checker/v1/entrypoint.sh | bash
41+
42+
build-check:
43+
runs-on: ubuntu-18.04
44+
steps:
45+
- name: Create web page
46+
run: |
47+
mkdir -v public
48+
cat > public/index.html << EOF
49+
<!DOCTYPE html>
50+
<html>
51+
<head>
52+
My page which will be stored on my-testing-domain.com domain
53+
</head>
54+
<body>
55+
Links:
56+
<ul>
57+
<li><a href="https://my-testing-domain.com">https://my-testing-domain.com</a></li>
58+
<li><a href="https://my-testing-domain.com:443">https://my-testing-domain.com:443</a></li>
59+
</ul>
60+
</body>
61+
</html>
62+
EOF
63+
64+
- name: Check links using script
65+
env:
66+
INPUT_URL: https://my-testing-domain.com
67+
INPUT_PAGES_PATH: ./public/
68+
INPUT_CMD_PARAMS: --skip-tls-verification --verbose
69+
INPUT_RUN_TIMEOUT: 10
70+
INPUT_DEBUG: true
71+
run: wget -qO- https://raw.githubusercontent.com/ruzickap/action-my-broken-link-checker/v1/entrypoint.sh | bash
72+
73+
- name: Check links using container
74+
uses: ruzickap/action-my-broken-link-checker@v1
75+
with:
76+
url: https://my-testing-domain.com
77+
pages_path: ./public/
78+
cmd_params: --skip-tls-verification --verbose
79+
run_timeout: 10
80+
debug: true
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: commands
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
paths:
7+
- README.md
8+
- .github/workflows/check-commands.yml
9+
push:
10+
branches:
11+
- master
12+
paths:
13+
- README.md
14+
- .github/workflows/check-commands.yml
15+
16+
jobs:
17+
command-check:
18+
runs-on: ubuntu-18.04
19+
steps:
20+
- uses: actions/checkout@v2
21+
22+
- name: Check commands in README.md file
23+
run: sed -n '/^```bash.*/,/^```$/p' README.md | sed '/^```*/d' | bash -x

.github/workflows/docker-image.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: docker-image
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
paths:
7+
- Dockerfile
8+
- .dockerignore
9+
- .hadolint.yaml
10+
- entrypoint.sh
11+
- .github/workflows/docker-image.yml
12+
push:
13+
branches:
14+
- master
15+
paths:
16+
- Dockerfile
17+
- .dockerignore
18+
- .hadolint.yaml
19+
- entrypoint.sh
20+
- .github/workflows/docker-image.yml
21+
22+
jobs:
23+
docker-build-test:
24+
runs-on: ubuntu-18.04
25+
steps:
26+
- uses: actions/checkout@v2
27+
28+
- name: Build test
29+
run: docker build . --file Dockerfile
30+
31+
hadolint:
32+
runs-on: ubuntu-18.04
33+
steps:
34+
- uses: actions/checkout@v2
35+
36+
- name: hadolint
37+
uses: burdzwastaken/hadolint-action@master
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
HADOLINT_ACTION_DOCKERFILE_FOLDER: .

.github/workflows/markdown.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: markdown
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
paths:
7+
- '**.md'
8+
- .github/workflows/markdown.yml
9+
- .markdownlint.yml
10+
- .spelling
11+
push:
12+
branches:
13+
- master
14+
paths:
15+
- '**.md'
16+
- .github/workflows/markdown.yml
17+
- .markdownlint.yml
18+
- .spelling
19+
20+
jobs:
21+
markdownlint-check:
22+
runs-on: ubuntu-18.04
23+
steps:
24+
- uses: actions/checkout@v2
25+
26+
- name: markdownlint-cli
27+
uses: nosborn/github-action-markdown-cli@v1.1.1
28+
with:
29+
files: .
30+
config_file: .markdownlint.yml
31+
ignore_files: CHANGELOG.md
32+
33+
markdown-spell-check:
34+
runs-on: ubuntu-18.04
35+
steps:
36+
- uses: actions/checkout@v2
37+
38+
- name: Install Node.js 12
39+
uses: actions/setup-node@v1
40+
with:
41+
node-version: 12.x
42+
43+
- name: Install markdown-spellcheck
44+
run: npm install -g markdown-spellcheck
45+
46+
- name: Run mdspell
47+
run: find . -type f \( -name "*.md" ! -name "CHANGELOG.md" \) | xargs --max-args=1 --verbose mdspell --ignore-numbers --ignore-acronyms --report --en-gb
48+
49+
markdown-link-check:
50+
runs-on: ubuntu-18.04
51+
steps:
52+
- uses: actions/checkout@v2
53+
54+
- name: Link Checker
55+
uses: gaurav-nelson/github-action-markdown-link-check@0.4.0

.github/workflows/shellcheck.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: shellcheck
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
paths:
7+
- '**.sh'
8+
- .github/workflows/shellcheck.yml
9+
push:
10+
branches:
11+
- master
12+
paths:
13+
- '**.sh'
14+
- .github/workflows/shellcheck.yml
15+
16+
jobs:
17+
shellcheck-check:
18+
runs-on: ubuntu-18.04
19+
steps:
20+
- uses: actions/checkout@v2
21+
22+
- name: Lint check
23+
uses: azohra/shell-linter@v0.2.0

0 commit comments

Comments
 (0)